summaryrefslogtreecommitdiffstats
path: root/daemon/mount.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-10 23:11:01 +0200
committerJim Meyering <meyering@redhat.com>2009-08-13 14:45:34 +0200
commit6bda071b5cd8393b37653687027c4ae6c6cf3804 (patch)
tree58271b258a06cff6066cdec062b3d08bf68139d3 /daemon/mount.c
parent0c07f0d23698798475e0d09491812aca52440328 (diff)
downloadlibguestfs-6bda071b5cd8393b37653687027c4ae6c6cf3804.tar.gz
libguestfs-6bda071b5cd8393b37653687027c4ae6c6cf3804.tar.xz
libguestfs-6bda071b5cd8393b37653687027c4ae6c6cf3804.zip
update all NEED_ROOT uses
run this command: git grep -l -w NEED_ROOT|xargs perl -pi -e \ 's/(NEED_ROOT) \((.*?)\)/$1 (return $2)/'
Diffstat (limited to 'daemon/mount.c')
-rw-r--r--daemon/mount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/mount.c b/daemon/mount.c
index 14e683af..4f606823 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;