Use closefrom() or close_range() when possible
To avoid leaking file descriptors into subprocesses. Fixes: https://github.com/libarchive/libarchive/issues/2520
This commit is contained in:
1 parent
6062470cbc
commit
64bcf69ef8
7 files changed
+34
-3
No files matched your search
@@ -405,6 +405,12 @@ typedef uint64_t uintmax_t;
|
||||
/* Define to 1 if you have the `chroot' function. */
|
||||
#cmakedefine HAVE_CHROOT 1
|
||||
|
||||
/* Define to 1 if you have the `closefrom' function. */
|
||||
#cmakedefine HAVE_CLOSEFROM 1
|
||||
|
||||
/* Define to 1 if you have the `close_range' function. */
|
||||
#cmakedefine HAVE_CLOSE_RANGE 1
|
||||
|
||||
/* Define to 1 if you have the <copyfile.h> header file. */
|
||||
#cmakedefine HAVE_COPYFILE_H 1
|
||||
|
||||
|
||||
Reference in new issue
Block a user