mountinfo: read /proc/self/mounts instead of /proc/mounts on Linux
This commit is contained in:
parent
a59365a582
commit
b3f7ff901f
@ -298,7 +298,7 @@ find_mounts(struct args *args)
|
||||
int netdev;
|
||||
RC_STRINGLIST *list;
|
||||
|
||||
if ((fp = fopen("/proc/mounts", "r")) == NULL)
|
||||
if ((fp = fopen("/proc/self/mounts", "r")) == NULL)
|
||||
eerrorx("getmntinfo: %s", strerror(errno));
|
||||
|
||||
list = rc_stringlist_new();
|
||||
|
Loading…
Reference in New Issue
Block a user