update all NEED_ROOT uses

run this command:
  git grep -l -w NEED_ROOT|xargs perl -pi -e \
    's/(NEED_ROOT) \((.*?)\)/$1 (return $2)/'
This commit is contained in:
Jim Meyering
2009-08-10 23:11:01 +02:00
parent 0c07f0d236
commit 6bda071b5c
32 changed files with 57 additions and 57 deletions

View File

@@ -37,7 +37,7 @@ do_stat (char *path)
guestfs_int_stat *ret;
struct stat statbuf;
NEED_ROOT (NULL);
NEED_ROOT (return NULL);
ABS_PATH (path, return NULL);
CHROOT_IN;
@@ -79,7 +79,7 @@ do_lstat (char *path)
guestfs_int_stat *ret;
struct stat statbuf;
NEED_ROOT (NULL);
NEED_ROOT (return NULL);
ABS_PATH (path, return NULL);
CHROOT_IN;
@@ -121,7 +121,7 @@ do_statvfs (char *path)
guestfs_int_statvfs *ret;
struct statvfs statbuf;
NEED_ROOT (NULL);
NEED_ROOT (return NULL);
ABS_PATH (path, return NULL);
CHROOT_IN;