]> The Tcpdump Group git mirrors - tcpdump/commit
If -U is specified, flush the file after creating it, so it's not zero-length.
authorRomain Francoise <[email protected]>
Sat, 5 Jun 2010 07:37:27 +0000 (00:37 -0700)
committerGuy Harris <[email protected]>
Sat, 5 Jun 2010 07:37:59 +0000 (00:37 -0700)
commite3f30fd4dd84b0f89eefd0d7449e78032b06d797
treea05aa436b5b6a02b174eced9699f74ec31cd6985
parentdfb8d1e65e6a4b7acd2082c303b574541d006cca
If -U is specified, flush the file after creating it, so it's not zero-length.

Reading from a capture file that has not yet received any packets fails
with "truncated dump file"; to avoid this, flush the file (forcing the
pcap header out) immediately after opening it.

(Added Romain to the credits.)

Reviewed-By: Guy Harris <[email protected]>
CREDITS
tcpdump.c