sync code with last fixes and improvements from OpenBSD

This commit is contained in:
purplerain 2023-06-12 17:03:20 +00:00
parent 8f31919cdb
commit 25f3a6cfac
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
76 changed files with 1289 additions and 694 deletions

View file

@ -344,7 +344,7 @@ parent_sig_handler(int sig, short event, void *p)
int len;
enum mda_resp_status mda_status;
int mda_sysexit;
pid = waitpid(-1, &status, WNOHANG);
if (pid <= 0)
continue;
@ -1355,7 +1355,7 @@ fork_filter_process(const char *name, const char *command, const char *user, con
if (command[0] == '/')
execr = snprintf(exec, sizeof(exec), "exec %s", command);
else
execr = snprintf(exec, sizeof(exec), "exec %s/%s",
execr = snprintf(exec, sizeof(exec), "exec %s/%s",
PATH_LIBEXEC, command);
if (execr >= (int) sizeof(exec))
fatalx("%s: exec path too long", name);