summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--daemon/mount.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/daemon/mount.c b/daemon/mount.c
index c584f81d..0c990c31 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -40,9 +40,12 @@ is_root_mounted (void)
FILE *fp;
struct mntent *m;
- fp = setmntent ("/etc/mtab", "r");
+ /* NB: Eventually we should aim to parse /proc/self/mountinfo, but
+ * that requires custom parsing code.
+ */
+ fp = setmntent ("/proc/mounts", "r");
if (fp == NULL) {
- perror ("/etc/mtab");
+ perror ("/proc/mounts");
exit (EXIT_FAILURE);
}