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

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

Date Prev · Date Next · Thread Prev · Thread Next
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sun, 30 Jul 2000 23:53:38 -0500 (CDT)
guy         2000/07/30 23:53:35 CDT

  Modified files:
    .                    util.c util.h 
  Log:
  Add a routine to check whether a file is a directory or not.
  
  To test whether a file the user selected to be opened from the file
  selection box is really a directory (so that we can point the file
  selection box at it, rather than trying to open the directory as a
  capture file, which wouldn't work), use the routine in question.
  
  To make the GTK+ file selection box start out in the last directory from
  which we opened a file, use "gtk_file_selection_complete()", rather than
  "chdir()"ing to that directory.
  
  Those changes keep us from "chdir()"ing all over the place; that way, if
  Ethereal dumps core, the core dump shows up in the directory from which
  it was run, rather than in the directory from which you last opened or
  into which you last saved a file.
  
  Revision  Changes    Path
  1.40      +46 -1     ethereal/util.c
  1.20      +14 -1     ethereal/util.h