summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ismounted.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ismounted.c b/lib/ismounted.c
index 592df3086..f19d67b1e 100644
--- a/lib/ismounted.c
+++ b/lib/ismounted.c
@@ -171,6 +171,10 @@ static int check_mntent(const char *file, int *mount_flags,
mtpt, mtlen);
if (retval == 0 && (*mount_flags != 0))
return 0;
+ if (access("/proc/mounts", R_OK) == 0) {
+ *mount_flags = 0;
+ return retval;
+ }
#endif /* __linux__ */
#if defined(MOUNTED) || defined(_PATH_MOUNTED)
#ifndef MOUNTED