Wireshark-commits: [Wireshark-commits] rev 42977: /trunk/ /trunk/: file.c /trunk/wiretap/: file_acc

Date: Fri, 01 Jun 2012 16:55:11 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42977

User: guy
Date: 2012/06/01 09:55 AM

Log:
 TShark doesn't need wtap_fdreopen(), as it doesn't do saves and thus
 doesn't do safe saves, so wtap_fdreopen() always needs to reopen the
 random file descriptor.
 
 At the point where a safe save is done, the sequential read is done, so
 the sequential stream is closed; there's no need to reopen it.
 
 (The former fourth argument to wtap_fdreopen() wasn't an indication of
 whether the file was compressed, it was an indicationof whether the
 random stream should be reopened.)

Directory: /trunk/
  Changes    Path          Action
  +3 -2      file.c        Modified

Directory: /trunk/wiretap/
  Changes    Path             Action
  +26 -78    file_access.c    Modified
  +2 -3      wtap.h           Modified