@@ -72,7 +72,7 @@ int find_mount_root(const char *path, char **mount_root)
return -errno;
close(fd);
- mnttab = fopen("/proc/mounts", "r");
+ mnttab = fopen("/proc/self/mounts", "r");
if (!mnttab)
return -errno;
@@ -996,7 +996,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) {
Signed-off-by: Anand Jain <anand.jain@oracle.com> --- cmds-send.c | 2 +- utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)