From 068205d5e5186ab3fb0403d129572bc90a65bd23 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 29 Apr 2017 17:24:06 -0400 Subject: mtab: Don't hardcode /etc/mtab --- mtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtab.c b/mtab.c index 0311c50..8c581d6 100644 --- a/mtab.c +++ b/mtab.c @@ -73,7 +73,7 @@ static int bfs_mtab_push(struct bfs_mtab *mtab, dev_t dev, const char *type) { struct bfs_mtab *parse_bfs_mtab() { #if __linux__ - FILE *file = setmntent("/etc/mtab", "r"); + FILE *file = setmntent(_PATH_MOUNTED, "r"); if (!file) { goto fail; } -- cgit v1.2.3