mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
In rmmountpoint, have to explicitly check for ABS_PATH (*not* NEED_ROOT).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user