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/tar.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/tar.c')
-rw-r--r-- | daemon/tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/tar.c b/daemon/tar.c index 39b983c0..e1ff9b6d 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -107,7 +107,7 @@ do_tar_out (char *dir) char buf[GUESTFS_MAX_CHUNK_SIZE]; NEED_ROOT (-1); - ABS_PATH (dir, -1); + ABS_PATH (dir, return -1); /* "tar -C /sysroot%s -cf - ." but we have to quote the dir. */ if (asprintf_nowarn (&cmd, "tar -C %R -cf - .", dir) == -1) { @@ -229,7 +229,7 @@ do_tgz_out (char *dir) char buf[GUESTFS_MAX_CHUNK_SIZE]; NEED_ROOT (-1); - ABS_PATH (dir, -1); + ABS_PATH (dir, return -1); /* "tar -C /sysroot%s -zcf - ." but we have to quote the dir. */ if (asprintf_nowarn (&cmd, "tar -C %R -zcf - .", dir) == -1) { |