mountinfo: read /proc/self/mounts instead of /proc/mounts on Linux

This commit is contained in:
William Hubbs committed 2015-10-04 15:35:33 -05:00
1 parent a59365a582
commit b3f7ff901f
1 file changed
+1 -1
+1 -1
View File
@@ -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();