summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-08-13 14:41:05 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-08-13 14:41:05 +0100
commitdcd67e2c4e81bb270ea7f5ed8b6675b114afca60 (patch)
tree710dac8ae0329451eb306b3f8f73c98d1983ed5a /daemon
parent0790c58e369d8fe77c8d1c6473dd757c63abebab (diff)
downloadlibguestfs-dcd67e2c4e81bb270ea7f5ed8b6675b114afca60.tar.gz
libguestfs-dcd67e2c4e81bb270ea7f5ed8b6675b114afca60.tar.xz
libguestfs-dcd67e2c4e81bb270ea7f5ed8b6675b114afca60.zip
In rmmountpoint, have to explicitly check for ABS_PATH (*not* NEED_ROOT).
Diffstat (limited to 'daemon')
-rw-r--r--daemon/mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/mount.c b/daemon/mount.c
index 4f74c028..d1b26fa7 100644
--- 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;