Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal util.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 23 Aug 1999 00:02:55 -0500 (CDT)
guy         1999/08/23 00:02:53 CDT

  Modified files:
    .                    util.c 
  Log:
  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).
  
  Revision  Changes    Path
  1.19      +22 -2     ethereal/util.c