git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
proto: Improve debug messages.
[libguestfs.git]
/
daemon
/
mount.c
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
c584f81
..
0c990c3
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-40,9
+40,12
@@
is_root_mounted (void)
FILE *fp;
struct mntent *m;
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) {
if (fp == NULL) {
- perror ("/
etc/mtab
");
+ perror ("/
proc/mounts
");
exit (EXIT_FAILURE);
}
exit (EXIT_FAILURE);
}