X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fcommand.c;h=8ad5db5cc8ca5ea443182ac35370b5d495e993d2;hp=ca06478c6681d19c5266cf617a9c8e2c2c93aa05;hb=692f127447d399db21c2e93026d4d2b0ac1839d1;hpb=e9c37113104c1cfb234535adc9b52ad3880a41ce diff --git a/daemon/command.c b/daemon/command.c index ca06478..8ad5db5 100644 --- a/daemon/command.c +++ b/daemon/command.c @@ -22,7 +22,7 @@ #include #include -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" @@ -36,7 +36,7 @@ do_command (char *const *argv) int dev_ok, dev_pts_ok, proc_ok, selinux_ok, sys_ok; /* We need a root filesystem mounted to do this. */ - NEED_ROOT (return NULL); + NEED_ROOT (0, return NULL); /* Conveniently, argv is already a NULL-terminated argv-style array * of parameters, so we can pass it straight in to our internal