git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mount: Check mountpoints are absolute paths.
[libguestfs.git]
/
daemon
/
mount.c
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) {