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
/
grep.c
diff --git
a/daemon/grep.c
b/daemon/grep.c
index
c51dc0b
..
f0dbefd
100644
(file)
--- a/
daemon/grep.c
+++ b/
daemon/grep.c
@@
-35,8
+35,8
@@
grep (const char *prog, const char *flag, char *regex, char *path)
int r;
char **lines;
- NEED_ROOT (NULL);
- ABS_PATH (path, NULL);
+ NEED_ROOT (
return
NULL);
+ ABS_PATH (path,
return
NULL);
/* Make the path relative to /sysroot. */
buf = sysroot_path (path);