rev 17468: /trunk/: capture_loop.c tethereal.c
| Newsgroups | gmane.network.ethereal.cvs |
|---|---|
| Message-ID | <[email protected]> |
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