In rmmountpoint, have to explicitly check for ABS_PATH (*not* NEED_ROOT).
authorRichard Jones <rjones@trick.home.annexia.org>
Thu, 13 Aug 2009 13:41:05 +0000 (14:41 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Thu, 13 Aug 2009 13:41:05 +0000 (14:41 +0100)
daemon/mount.c

index 4f74c02..d1b26fa 100644 (file)
@@ -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;