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

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

From: "Gilbert Ramirez Jr." <gram@xxxxxxxxxxxx>
Date: Mon, 2 Aug 1999 01:09:03 -0500 (CDT)
gram        1999/08/02 01:09:01 CDT

  Modified files:
    .                    capture.c 
  Log:
  Changed the chmod() call to a pair of umask() calls that straddle the
  call to pcap_dump_open. This allows us to control the readability of the
  temporary trace file, and avoid a race condition in which a user could
  open the trace file after the pcap_dump_open() call and the subsequent
  chmod() call.
  
  Thanks to Jeorg for pointing for pointing out the race condition.
  
  Revision  Changes    Path
  1.39      +9 -2      ethereal/capture.c