diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-10 23:11:01 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-13 14:45:34 +0200 |
commit | 6bda071b5cd8393b37653687027c4ae6c6cf3804 (patch) | |
tree | 58271b258a06cff6066cdec062b3d08bf68139d3 /daemon/swap.c | |
parent | 0c07f0d23698798475e0d09491812aca52440328 (diff) | |
download | libguestfs-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/swap.c')
-rw-r--r-- | daemon/swap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/swap.c b/daemon/swap.c index f7270f8f..580482fc 100644 --- a/daemon/swap.c +++ b/daemon/swap.c @@ -73,7 +73,7 @@ do_mkswap_file (char *path) char *buf; int r; - NEED_ROOT (-1); + NEED_ROOT (return -1); ABS_PATH (path, return -1); buf = sysroot_path (path); @@ -127,7 +127,7 @@ do_swapon_file (char *path) char *buf; int r; - NEED_ROOT (-1); + NEED_ROOT (return -1); ABS_PATH (path, return -1); buf = sysroot_path (path); @@ -147,7 +147,7 @@ do_swapoff_file (char *path) char *buf; int r; - NEED_ROOT (-1); + NEED_ROOT (return -1); ABS_PATH (path, return -1); buf = sysroot_path (path); |