Removed chmod of bccfil from make_bcc_file(). It was done before
authorDavid Levine <levinedl@acm.org>
Sat, 18 Aug 2012 00:29:49 +0000 (19:29 -0500)
committerDavid Levine <levinedl@acm.org>
Sat, 18 Aug 2012 00:29:49 +0000 (19:29 -0500)
bccfil was defined so it had no useful effect.  m_mktemp2() sets
the umask so it wasn't necessary, anyway.

uip/post.c

index edc17d7..813d462 100644 (file)
@@ -1279,7 +1279,6 @@ make_bcc_file (int dashstuff)
 
     tfile = m_mktemp2(NULL, "bccs", NULL, &out);
     if (tfile == NULL) adios("bcc", "unable to create temporary file");
-    chmod (bccfil, 0600);
     strncpy (bccfil, tfile, sizeof(bccfil));
 
     fprintf (out, "Date: %s\n", dtime (&tclock, 0));