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

This commit is contained in:
William Hubbs 2015-10-04 15:35:33 -05:00
parent a59365a582
commit b3f7ff901f

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();