The Single UNIX Specification doesn't say that "mkstemp()" creates the
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 23 Aug 1999 05:02:50 +0000 (05:02 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 23 Aug 1999 05:02:50 +0000 (05:02 +0000)
commit60ccf8d72a19f453e51e83acee6f9f926fc7796d
treef63f269652505b9360375355016d261e0dfa8f5f
parent3358ec863380e39c3647b6a8578d7f9bea7b6b0e
The Single UNIX Specification doesn't say that "mkstemp()" creates the
temporary file with mode rw-------, so we won't assume that all UNIXes
will do so; instead, we set the umask to 0077 to take away all group and
other permissions, attempt to create the file, and then put the umask
back (puts into "try_tempfile()", called by "create_tempfile()" to
create temporary files, the "umask()" calls that Gilbert put into
"capture.c" to deal with the same problem).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@553 f5534014-38df-0310-8fa8-9805f1628bb7
util.c