git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f7bec2
)
mount: Check mountpoints are absolute paths.
author
Richard Jones
<rjones@trick.home.annexia.org>
Thu, 13 Aug 2009 14:00:38 +0000
(15:00 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Thu, 13 Aug 2009 15:19:25 +0000
(16:19 +0100)
daemon/mount.c
patch
|
blob
|
history
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
d1b26fa
..
f593812
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-48,6
+48,8
@@
do_mount_vfs (const char *options, const char *vfstype,
char *mp;
char *error;
+ ABS_PATH (mountpoint, return -1);
+
is_root = strcmp (mountpoint, "/") == 0;
if (!root_mounted && !is_root) {