Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/wiretap file.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: Sun, 30 Jul 2000 23:20:00 -0500 (CDT)
guy         2000/07/30 23:19:57 CDT

  Modified files:
    wiretap              file.c 
  Log:
  It appears that, at least with Visual C++ 6.0, the "stat()" supplied in
  the C run-time library sets "statb.st_mode" appropriately, at least for
  plain files and directories; it just doesn't offer the POSIX "S_ISxxx()"
  macros to test the file type.
  
  If those macros aren't defined (which might also be the case on really
  ancient UNIX systems), define them appropriately, and use them even on
  Win32 systems, so that we can properly report attempts by a user to read
  from a directory on Win32, just as we do on UNIX.
  
  Revision  Changes    Path
  1.57      +15 -4     ethereal/wiretap/file.c