From: Richard Jones Date: Thu, 13 Aug 2009 13:41:05 +0000 (+0100) Subject: In rmmountpoint, have to explicitly check for ABS_PATH (*not* NEED_ROOT). X-Git-Tag: 1.0.67~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=dcd67e2c4e81bb270ea7f5ed8b6675b114afca60;p=libguestfs.git In rmmountpoint, have to explicitly check for ABS_PATH (*not* NEED_ROOT). --- diff --git a/daemon/mount.c b/daemon/mount.c index 4f74c02..d1b26fa 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;