X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=8eeed10ed58c0943335526c49e36d60495ff11be;hb=d3ba09a465cb0e5fc9a74d0b152a7ed965f895cb;hp=82af31e8bf349e38a969892135b6c29978c44d95;hpb=5b792c4424571f05bc2008e3109797d18d7d00d1;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 82af31e..8eeed10 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -203,7 +203,7 @@ WhatNow(int argc, char **argv) } if ((drft == NULL && (drft = getenv("mhdraft")) == NULL) || *drft == 0) - drft = getcpy(m_draft("cur")); + drft = getcpy(m_draft(seq_cur)); msgnam = (cp = getenv("mhaltmsg")) && *cp ? getcpy(cp) : NULL; @@ -703,7 +703,7 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp, context_save(); /* save the context file */ fflush(stdout); - switch (pid = vfork()) { + switch (pid = fork()) { case NOTOK: advise("fork", "unable to"); status = NOTOK; @@ -828,7 +828,7 @@ sendfile(char **arg, char *file, int pushsw) char *cp, *sp, *vec[MAXARGS]; /* Translate MIME composition file, if necessary */ - if ((cp = context_find("automimeproc")) && (!strcmp(cp, "1")) && + if ((cp = context_find("automimeproc")) && (strcmp(cp, "1")==0) && !getenv("NOMHNPROC") && check_draft(file) && (buildfile(NULL, file) == NOTOK)) return 0; @@ -853,7 +853,7 @@ sendfile(char **arg, char *file, int pushsw) context_save(); /* save the context file */ fflush(stdout); - for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++) + for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++) sleep(5); switch (child_id) { case NOTOK: