]> 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:27 +0000 (00:37 -0700)
commit768c379e643e28184fe267700859a698cc90faf8
tree13f971ef3774c543a3f4a35bfb1f2c3ececfab87
parent156d01c798cfba1e53d385c844d60bcb01240a4e
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