diff options
author | Anand Jain <anand.jain@oracle.com> | 2013-11-07 10:53:43 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-31 08:22:01 -0800 |
commit | 90cad5f9e6f55947bd5e5b64dd9e44bdd02982b3 (patch) | |
tree | 6ff1f600ba86172e26630b4b2d83e32c7da99652 /utils.c | |
parent | d06b30feb9cb99e3684b5709159ca59cf811f517 (diff) |
btrfs-progs: use /proc/self/mounts
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -997,7 +997,7 @@ int check_mounted_where(int fd, const char *file, char *where, int size, } /* iterate over the list of currently mountes filesystems */ - if ((f = setmntent ("/proc/mounts", "r")) == NULL) + if ((f = setmntent ("/proc/self/mounts", "r")) == NULL) return -errno; while ((mnt = getmntent (f)) != NULL) { |