Call send directly, not via sendproc. Removed its profile entry, too.
[mmh] / uip / whatnow.c
index bd1a3d5..168384f 100644 (file)
@@ -220,7 +220,7 @@ main(int argc, char **argv)
                        /* display the msg being replied to or distributed */
                        if (msgnam) {
                                snprintf(buf, sizeof buf, "%s '%s'",
-                                               lproc, msgnam);
+                                               listproc, msgnam);
                                system(buf);
                        } else {
                                advise(NULL, "no alternate message to display");
@@ -238,7 +238,7 @@ main(int argc, char **argv)
 
                case LISTSW:
                        /* display the draft file */
-                       snprintf(buf, sizeof buf, "%s '%s'", lproc, drft);
+                       snprintf(buf, sizeof buf, "%s '%s'", listproc, drft);
                        system(buf);
                        break;
 
@@ -790,9 +790,9 @@ sendfile(char **arg, char *file, int pushsw)
                vec[vecp++] = file;
                vec[vecp] = NULL;
 
-               execvp(sendproc, vec);
+               execvp("send", vec);
                fprintf(stderr, "unable to exec ");
-               perror(sendproc);
+               perror("send");
                _exit(-1);
 
        default: