summaryrefslogtreecommitdiffstats
path: root/mtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtab.c b/mtab.c
index 91a40aa..cb6a59a 100644
--- a/mtab.c
+++ b/mtab.c
@@ -162,7 +162,7 @@ struct bfs_mtab *bfs_mtab_parse() {
#elif BFS_MNTTAB
- FILE *file = fopen(MNTTAB, "r");
+ FILE *file = xfopen(MNTTAB, O_RDONLY | O_CLOEXEC);
if (!file) {
error = errno;
goto fail;