]> diplodocus.org Git - nmh/commit
Always check that mktemp()/mktemp2() succeeds before trying to
authorDavid Levine <levinedl@acm.org>
Wed, 22 Jan 2014 02:55:57 +0000 (20:55 -0600)
committerDavid Levine <levinedl@acm.org>
Wed, 22 Jan 2014 02:55:57 +0000 (20:55 -0600)
commit4a78cbcd4fa986d9c1e7bd0a5a4bdb619faeb7cb
tree331c82864e9cb1e3402729bb4489ee68eebf6797
parent2b33dce4c4102935f233226bc0cb0adfafd265d0
Always check that mktemp()/mktemp2() succeeds before trying to
use result.  And if it fails, have the error message report
the directory where the failed temporary file creation occurred.
And, removed all chmod()'s of temporary files created by mktemp()/
mktemp2() because they set the umask to 077 before calling mkstemp(3).
20 files changed:
uip/annosbr.c
uip/attach.c
uip/burst.c
uip/distsbr.c
uip/forwsbr.c
uip/mhbuild.c
uip/mhbuildsbr.c
uip/mhfixmsg.c
uip/mhparse.c
uip/mhstoresbr.c
uip/post.c
uip/prompter.c
uip/rcvdist.c
uip/rcvstore.c
uip/rcvtty.c
uip/send.c
uip/sendsbr.c
uip/slocal.c
uip/viamail.c
uip/whatnowsbr.c