diff options
Diffstat (limited to 'src/audit.c')
-rw-r--r-- | src/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audit.c b/src/audit.c index 9867227..ca0945e 100644 --- a/src/audit.c +++ b/src/audit.c @@ -55,7 +55,7 @@ static int audit_directory(apk_hash_item item, void *ctx) if (!(dbd->flags & APK_DBDIRF_PROTECTED)) return 0; - dir = fdopendir(openat(db->root_fd, dbd->name, O_RDONLY)); + dir = fdopendir(openat(db->root_fd, dbd->name, O_RDONLY | O_CLOEXEC)); if (dir == NULL) return 0; |