diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-27 13:10:26 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-03-29 15:35:38 +0200 |
commit | 62c3edd9575cb7dfef0d86392e4b87a4c14d8dee (patch) | |
tree | a81a324ef38fdbb62c42f25dfa6cfdaec41480c0 /util.c | |
parent | ad7f57a5b75ae62b48e5ff4f0c302f545dea2603 (diff) | |
download | passt-62c3edd9575cb7dfef0d86392e4b87a4c14d8dee.tar passt-62c3edd9575cb7dfef0d86392e4b87a4c14d8dee.tar.gz passt-62c3edd9575cb7dfef0d86392e4b87a4c14d8dee.tar.bz2 passt-62c3edd9575cb7dfef0d86392e4b87a4c14d8dee.tar.lz passt-62c3edd9575cb7dfef0d86392e4b87a4c14d8dee.tar.xz passt-62c3edd9575cb7dfef0d86392e4b87a4c14d8dee.tar.zst passt-62c3edd9575cb7dfef0d86392e4b87a4c14d8dee.zip |
treewide: Fix android-cloexec-* clang-tidy warnings, re-enable checks
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -495,7 +495,7 @@ void procfs_scan_listen(struct ctx *c, uint8_t proto, int ip_version, int ns, if (*fd != -1) lseek(*fd, 0, SEEK_SET); - else if ((*fd = open(path, O_RDONLY)) < 0) + else if ((*fd = open(path, O_RDONLY | O_CLOEXEC)) < 0) return; *line = 0; |