diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-10 19:03:36 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-13 14:45:34 +0200 |
commit | 0dd6c8c8442d4ff588f6dac2efab24d3409b0dec (patch) | |
tree | 3b97e6facdd874b4573eb6142a2cd376cb7b88ef /daemon/swap.c | |
parent | 4a5e13f15734aa7363e605f716ad6e29c67475c5 (diff) | |
download | libguestfs-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/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 c9104e1d..bb1706fa 100644 --- a/daemon/swap.c +++ b/daemon/swap.c @@ -80,7 +80,7 @@ do_mkswap_file (char *path) int r; NEED_ROOT (-1); - ABS_PATH (path, -1); + ABS_PATH (path, return -1); buf = sysroot_path (path); if (!buf) { @@ -138,7 +138,7 @@ do_swapon_file (char *path) int r; NEED_ROOT (-1); - ABS_PATH (path, -1); + ABS_PATH (path, return -1); buf = sysroot_path (path); if (!buf) { @@ -158,7 +158,7 @@ do_swapoff_file (char *path) int r; NEED_ROOT (-1); - ABS_PATH (path, -1); + ABS_PATH (path, return -1); buf = sysroot_path (path); if (!buf) { |