summaryrefslogtreecommitdiffstats
path: root/daemon/mount.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-10 19:03:36 +0200
committerJim Meyering <meyering@redhat.com>2009-08-13 14:45:34 +0200
commit0dd6c8c8442d4ff588f6dac2efab24d3409b0dec (patch)
tree3b97e6facdd874b4573eb6142a2cd376cb7b88ef /daemon/mount.c
parent4a5e13f15734aa7363e605f716ad6e29c67475c5 (diff)
downloadlibguestfs-0dd6c8c8442d4ff588f6dac2efab24d3409b0dec.tar.gz
libguestfs-0dd6c8c8442d4ff588f6dac2efab24d3409b0dec.tar.xz
libguestfs-0dd6c8c8442d4ff588f6dac2efab24d3409b0dec.zip
update all uses of ABS_PATH
run this command: git grep -l -w ABS_PATH|xargs perl -pi -e \ 's/(?:ABS_PATH)( \(.*?,) (.*?)\)/ABS_PATH$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 6c30304e..8cf68749 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -320,7 +320,7 @@ do_mount_loop (char *file, char *mountpoint)
char *error;
NEED_ROOT (-1);
- ABS_PATH (file, -1);
+ ABS_PATH (file, return -1);
/* We have to prefix /sysroot on both the filename and the mountpoint. */
mp = sysroot_path (mountpoint);
@@ -358,7 +358,7 @@ do_mkmountpoint (char *path)
int r;
/* NEED_ROOT (-1); - we don't want this test for this call. */
- ABS_PATH (path, -1);
+ ABS_PATH (path, return -1);
CHROOT_IN;
r = mkdir (path, 0777);
@@ -383,7 +383,7 @@ do_rmmountpoint (char *path)
int r;
NEED_ROOT (-1);
- ABS_PATH (path, -1);
+ ABS_PATH (path, return -1);
CHROOT_IN;
r = rmdir (path);