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:
0790c58
)
In rmmountpoint, have to explicitly check for ABS_PATH (*not* NEED_ROOT).
author
Richard Jones
<rjones@trick.home.annexia.org>
Thu, 13 Aug 2009 13:41:05 +0000
(14:41 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Thu, 13 Aug 2009 13:41:05 +0000
(14:41 +0100)
daemon/mount.c
patch
|
blob
|
history
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
4f74c02
..
d1b26fa
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-373,6
+373,9
@@
do_rmmountpoint (const char *path)
{
int r;
+ /* NEED_ROOT (return -1); - we don't want this test for this call. */
+ ABS_PATH (path, return -1);
+
CHROOT_IN;
r = rmdir (path);
CHROOT_OUT;