Ethereal-cvs: [Ethereal-cvs] rev 17468: /trunk/: capture_loop.c tethereal.c

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

Date: Sun, 05 Mar 2006 04:11:58 GMT
User: guy
Date: 2006/03/04 10:11 PM

Log:
 In the capture_loop.c code, open the capture device for input before
 doing anything with the output file, so that
 
 	1) if the attempt to open the capture device fails, we don't
 	   bother creating any output files;
 
 	2) we could relinquish privileges permanently as soon as we
 	   finish opening the capture device, so we don't have to give
 	   them up temporarily when opening the output file, reclaim
 	   them to open the input device, and then give them up
 	   permanently;
 
 (we already do that in Tethereal).
 
 While we're at it, set the capture filter immediately after opening the
 capture device, so we quit before opening capture devices if that fails.

Directory: /trunk/
  Changes    Path              Action
  +8 -8      capture_loop.c    Modified
  +6 -6      tethereal.c       Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=17468&view=rev