aboutgitcodebugslistschat
path: root/udp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2024-10-25 00:10:36 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-10-30 12:37:31 +0100
commit59fe34ee36368bb28c8298b1a1bfad5d0d9f47a3 (patch)
tree38745c05d3b8c5836380133c33f1e60d2a0e0847 /udp.c
parent134b4d58b409013d9f231aac1d4ba69f7835da7c (diff)
downloadpasst-59fe34ee36368bb28c8298b1a1bfad5d0d9f47a3.tar
passt-59fe34ee36368bb28c8298b1a1bfad5d0d9f47a3.tar.gz
passt-59fe34ee36368bb28c8298b1a1bfad5d0d9f47a3.tar.bz2
passt-59fe34ee36368bb28c8298b1a1bfad5d0d9f47a3.tar.lz
passt-59fe34ee36368bb28c8298b1a1bfad5d0d9f47a3.tar.xz
passt-59fe34ee36368bb28c8298b1a1bfad5d0d9f47a3.tar.zst
passt-59fe34ee36368bb28c8298b1a1bfad5d0d9f47a3.zip
treewide: Suppress clang-tidy warning if we already use O_CLOEXEC
In pcap_init(), we should always open the packet capture file with O_CLOEXEC, even if we're not running in foreground: O_CLOEXEC means close-on-exec, not close-on-fork. In logfile_init() and pidfile_open(), the fact that we pass a third 'mode' argument to open() seems to confuse the android-cloexec-open checker in LLVM versions from 16 to 19 (at least). The checker is suggesting to add O_CLOEXEC to 'mode', and not in 'flags', where we already have it. Add a suppression for clang-tidy and a comment, and avoid repeating those three times by adding a new helper, output_file_open(). Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.c')
0 files changed, 0 insertions, 0 deletions