diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2023-03-16 11:07:53 +0000 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-03-16 23:24:55 +0100 |
commit | 3994535c1d54028ae0a3268e001c9598c7c335ed (patch) | |
tree | dacc10a8799cc842ed65966717b6d68d1f3e94b8 /filter | |
parent | 9fa2184c303a237917b76da74f7271dca70d0d90 (diff) |
pcap: simplify opening of output file
Instead of statting the file, and choosing the mode with which to open
it and whether to write the PCAP header based on the result, always open
it with mode "a" and _then_ stat it. This simplifies the flow-control
and avoids a race between statting and opening.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'filter')
0 files changed, 0 insertions, 0 deletions