summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mtab.c b/src/mtab.c
index 68b4c07..07d7a53 100644
--- a/src/mtab.c
+++ b/src/mtab.c
@@ -228,7 +228,7 @@ static int bfs_mtab_fill_types(struct bfs_mtab *mtab) {
if (parent_fd >= 0) {
xclose(parent_fd);
}
- parent_fd = open(parent_dir, O_SEARCH, O_CLOEXEC, O_DIRECTORY);
+ parent_fd = open(parent_dir, O_SEARCH | O_CLOEXEC | O_DIRECTORY);
parent_ret = -1;
if (parent_fd >= 0) {