X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=36ba346d1c4b59a2245aece5e3dfe92f2eca3227;hb=2ff8ab0e9e57e7966e28ad9f68550e103b260980;hp=7db5c58873e9d47ca981ca21ed02fa62db8d14e2;hpb=03fe41ba1d68108808c966c6d7ff74bd8c1d648c;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 7db5c58..36ba346 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -696,7 +696,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 = vfork()) { case NOTOK: advise ("fork", "unable to"); status = NOTOK; @@ -1313,6 +1313,7 @@ sendit (char *sp, char **arg, char *file, int pushed) && altmsg) { vec[vecp++] = "-dist"; distfile = getcpy (m_mktemp2(altmsg, invo_name, NULL, NULL)); + unlink(distfile); if (link (altmsg, distfile) == NOTOK) adios (distfile, "unable to link %s to", altmsg); } else { @@ -1348,7 +1349,7 @@ whomfile (char **arg, char *file) context_save (); /* save the context file */ fflush (stdout); - switch (pid = vfork ()) { + switch (pid = vfork()) { case NOTOK: advise ("fork", "unable to"); return 1;