diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-04-29 17:24:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-04-29 17:24:06 -0400 |
commit | 068205d5e5186ab3fb0403d129572bc90a65bd23 (patch) | |
tree | 4224e682999418625f8f52cbe7709253614ec695 | |
parent | 4ffd0a1788c9bab185c2bcf6f23fff126ea63b9e (diff) | |
download | bfs-068205d5e5186ab3fb0403d129572bc90a65bd23.tar.xz |
mtab: Don't hardcode /etc/mtab
-rw-r--r-- | mtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |