fclose(out);
nvec = 0;
- vec[nvec++] = mhbasename(postproc);
+ vec[nvec++] = "spost";
vec[nvec++] = tmpfil;
if (resent)
vec[nvec++] = "-dist";
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",
done(status ? 1 : 0);
} else {
/* child process */
- execvp(postproc, vec);
+ execvp(*vec, vec);
fprintf(stderr, "unable to exec ");
- perror(postproc);
+ perror(*vec);
_exit(-1);
}