diff options
Diffstat (limited to 'cmds-send.c')
-rw-r--r-- | cmds-send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-send.c b/cmds-send.c index 43ea06b5..3d217151 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -72,7 +72,7 @@ int find_mount_root(const char *path, char **mount_root) return -errno; close(fd); - mnttab = fopen("/proc/self/mounts", "r"); + mnttab = setmntent("/proc/self/mounts", "r"); if (!mnttab) return -errno; @@ -87,7 +87,7 @@ int find_mount_root(const char *path, char **mount_root) } } } - fclose(mnttab); + endmntent(mnttab); if (!longest_match) { fprintf(stderr, |