X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Finotify.c;h=807fb2f59aee2310d07f64d4ada2c39e7f6f7ddb;hb=a44ec081b6ea10036ca0734197a47b1dfa035a1a;hp=ec3aa64f92fff7d380e523a70cdd06ac7f6941f7;hpb=e9c37113104c1cfb234535adc9b52ad3880a41ce;p=libguestfs.git diff --git a/daemon/inotify.c b/daemon/inotify.c index ec3aa64..807fb2f 100644 --- a/daemon/inotify.c +++ b/daemon/inotify.c @@ -28,7 +28,7 @@ #include #endif -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" #include "optgroups.h" @@ -70,7 +70,7 @@ do_inotify_init (int max_events) #ifdef HAVE_SYS_INOTIFY_H FILE *fp; - NEED_ROOT (return -1); + NEED_ROOT (0, return -1); if (max_events < 0) { reply_with_error ("max_events < 0");