X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhmail.c;h=033c63498772b496f9245f07091a9761efefbb8a;hp=72771a7fcf5627f06d138004dc40fc7e80a82ba7;hb=3b91e463fc7a4db9e7b69e2e0f4f7909339beea5;hpb=5b92ee6942b9b466914f5faa5fa4c00a2ebc6d35 diff --git a/uip/mhmail.c b/uip/mhmail.c index 72771a7..033c634 100644 --- a/uip/mhmail.c +++ b/uip/mhmail.c @@ -164,7 +164,7 @@ main(int argc, char **argv) fclose(out); nvec = 0; - vec[nvec++] = mhbasename(postproc); + vec[nvec++] = "spost"; vec[nvec++] = tmpfil; if (resent) vec[nvec++] = "-dist"; @@ -177,7 +177,7 @@ main(int argc, char **argv) adios(NULL, "unable to fork"); } else if (child_id) { /* parent process */ - if ((status = pidXwait(child_id, postproc))) { + if ((status = pidXwait(child_id, *vec))) { fprintf(stderr, "Letter saved in dead.letter\n"); execl("/bin/mv", "mv", tmpfil, "dead.letter", NULL); execl("/usr/bin/mv", "mv", tmpfil, "dead.letter", @@ -189,9 +189,9 @@ main(int argc, char **argv) done(status ? 1 : 0); } else { /* child process */ - execvp(postproc, vec); + execvp(*vec, vec); fprintf(stderr, "unable to exec "); - perror(postproc); + perror(*vec); _exit(-1); }