git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update all NEED_ROOT uses
[libguestfs.git]
/
daemon
/
tar.c
diff --git
a/daemon/tar.c
b/daemon/tar.c
index
e1ff9b6
..
9d21e79
100644
(file)
--- a/
daemon/tar.c
+++ b/
daemon/tar.c
@@
-106,7
+106,7
@@
do_tar_out (char *dir)
char *cmd;
char buf[GUESTFS_MAX_CHUNK_SIZE];
char *cmd;
char buf[GUESTFS_MAX_CHUNK_SIZE];
- NEED_ROOT (-1);
+ NEED_ROOT (
return
-1);
ABS_PATH (dir, return -1);
/* "tar -C /sysroot%s -cf - ." but we have to quote the dir. */
ABS_PATH (dir, return -1);
/* "tar -C /sysroot%s -cf - ." but we have to quote the dir. */
@@
-228,7
+228,7
@@
do_tgz_out (char *dir)
char *cmd;
char buf[GUESTFS_MAX_CHUNK_SIZE];
char *cmd;
char buf[GUESTFS_MAX_CHUNK_SIZE];
- NEED_ROOT (-1);
+ NEED_ROOT (
return
-1);
ABS_PATH (dir, return -1);
/* "tar -C /sysroot%s -zcf - ." but we have to quote the dir. */
ABS_PATH (dir, return -1);
/* "tar -C /sysroot%s -zcf - ." but we have to quote the dir. */