mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -51,7 +51,7 @@ do_inotify_init (int max_events)
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
NEED_ROOT (-1);
|
||||
NEED_ROOT (return -1);
|
||||
|
||||
if (max_events < 0) {
|
||||
reply_with_error ("inotify_init: max_events < 0");
|
||||
|
||||
Reference in New Issue
Block a user