]> git.marmaro.de Git - mmh/blobdiff - uip/whatnowsbr.c
Fix two errors in the conversion to m_mktemp2():
[mmh] / uip / whatnowsbr.c
index 7db5c58873e9d47ca981ca21ed02fa62db8d14e2..c3d93ff6b65e352f1c4ee7c70997e99454a4b5ab 100644 (file)
@@ -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 {