X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frcvdist.c;h=d409b5cb59de4532ce5748d25ad3d6724d24b961;hp=58bf62dda2a4a26254724d7119ea7cb059997bc5;hb=32b2354dbaf4bf934936eb5b102a4a3d2fdd209a;hpb=e0422dfed4d6d236e5298cea579587870b83384a diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 58bf62d..d409b5c 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -16,7 +16,7 @@ static struct swit switches[] = { #define FORMSW 0 { "form formfile", 4 }, #define VERSIONSW 1 - { "version", 0 }, + { "Version", 0 }, #define HELPSW 2 { "help", 0 }, { NULL, 0 } @@ -66,7 +66,7 @@ main(int argc, char **argv) continue; case HELPSW: - snprintf(buf, sizeof(buf), "%s [switches] [switches for postproc] address ...", invo_name); + snprintf(buf, sizeof(buf), "%s [switches] [switches for spost] address ...", invo_name); print_help(buf, switches, 1); done(1); case VERSIONSW: @@ -85,7 +85,7 @@ main(int argc, char **argv) } if (!addrs) { - adios(NULL, "usage: %s [switches] [switches for postproc] address ...", invo_name); + adios(NULL, "usage: %s [switches] [switches for spost] address ...", invo_name); } umask(~m_gmprot()); @@ -108,14 +108,14 @@ main(int argc, char **argv) done(1); } - vec[0] = mhbasename(postproc); + vec[0] = "spost"; vec[vecp++] = "-dist"; vec[vecp++] = drft; vec[vecp] = NULL; - execvp(postproc, vec); + execvp(*vec, vec); fprintf(stderr, "unable to exec "); - perror(postproc); + perror(*vec); _exit(1); return 0; /* dead code to satisfy the compiler */ }