X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fmount.c;h=4f6068232b093ba6aa438ab1cba81f4520a989fa;hb=6bda071b5cd8393b37653687027c4ae6c6cf3804;hp=14e683afd1d07d766247d518e9dc3468b7f7098a;hpb=0c07f0d23698798475e0d09491812aca52440328;p=libguestfs.git diff --git a/daemon/mount.c b/daemon/mount.c index 14e683a..4f60682 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -317,7 +317,7 @@ do_mount_loop (char *file, char *mountpoint) char *buf, *mp; char *error; - NEED_ROOT (-1); + NEED_ROOT (return -1); ABS_PATH (file, return -1); /* We have to prefix /sysroot on both the filename and the mountpoint. */ @@ -355,7 +355,7 @@ do_mkmountpoint (char *path) { int r; - /* NEED_ROOT (-1); - we don't want this test for this call. */ + /* NEED_ROOT (return -1); - we don't want this test for this call. */ ABS_PATH (path, return -1); CHROOT_IN; @@ -380,7 +380,7 @@ do_rmmountpoint (char *path) { int r; - NEED_ROOT (-1); + NEED_ROOT (return -1); ABS_PATH (path, return -1); CHROOT_IN;