X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=da2debde06cde0c683fe10e81f25684d94d2f8a2;hb=3bf07d227725f798f654ac09f015f35d27ab83cb;hp=5fcba33c9d20be52d6e210224886c82a7b5bfaf8;hpb=86048c14a070e3382577dd22519319bce77c70b9;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 5fcba33..da2debd 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -634,7 +634,7 @@ editfile (char **ed, char **arg, char *file, int use, struct msgs *mp, struct stat st; #ifdef HAVE_LSTAT - int slinked; + int slinked = 0; #if 0 int oumask; /* PJS: for setting permissions on symlinks. */ #endif @@ -1315,7 +1315,7 @@ sendit (char *sp, char **arg, char *file, int pushed) #endif /* not lint */ && altmsg) { vec[vecp++] = "-dist"; - distfile = getcpy (m_scratch (altmsg, invo_name)); + distfile = getcpy (m_mktemp2(altmsg, invo_name, NULL, NULL)); if (link (altmsg, distfile) == NOTOK) adios (distfile, "unable to link %s to", altmsg); } else {