X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=3009e0f0ccf9065381c6374aa321cbb61a84b67f;hb=ca34fbd0a5204d47ad019f64ef03d21ebd3397fd;hp=7db5c58873e9d47ca981ca21ed02fa62db8d14e2;hpb=03fe41ba1d68108808c966c6d7ff74bd8c1d648c;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 7db5c58..3009e0f 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -811,7 +811,7 @@ copyf (char *ifile, char *ofile) */ static int -sendfile (char **arg, char *file, int pushsw) +sendfile (char **arg, char *file, volatile int pushsw) { pid_t child_id; int i, vecp; @@ -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 {