]> The Tcpdump Group git mirrors - tcpdump/commit
Add CAP_FCNTL and use cap_fcntls_limit(). 433/head
authorWesley Shields <[email protected]>
Wed, 18 Feb 2015 22:07:18 +0000 (17:07 -0500)
committerWesley Shields <[email protected]>
Wed, 18 Feb 2015 22:07:18 +0000 (17:07 -0500)
commit887bf88fd058f8c0ef9a5af1a95b43753e3ad2eb
tree9d45609e936e3d82d9cc10275b6cfb71d66289b8
parent4a4d5b7b2fdd7de9ca7a5cafcd04064171d3a64d
Add CAP_FCNTL and use cap_fcntls_limit().

Without these changes pcap_dump_ftell() will return -1 and set errno to
ENOTCAPABLE.

This allows you to do:

tcpdump -C 1 -W 5 -w foo.pcap

Without these changes it will never rotate to foo.pcap1 and continue writing
to foo.pcap0 forever.

Discussed at: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2014-09/msg00142.html
tcpdump.c