X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnow.c;h=168384f7479dba98d19edcc87b79e8fb230302fb;hb=9d65b803e9cd65249ea2317c2f43495b9eed40bc;hp=b809ebebdf879b0c0f3f6ea100adf75c7a1b5d67;hpb=5fbf37ee68e018998ada61eeab73e035b26834b6;p=mmh diff --git a/uip/whatnow.c b/uip/whatnow.c index b809ebe..168384f 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -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; @@ -622,10 +622,9 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp, if ((cp = context_find(cp)) != NULL) *ed = cp; } - } else { + } else if (!*ed) { /* set initial editor */ - if (*ed == NULL && (*ed = context_find("editor")) == NULL) - *ed = defaulteditor; + *ed = defaulteditor; } if (altmsg) { @@ -791,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: