X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fcommand.c;h=48bed2de0262760f49e944b119632f6907c6e459;hp=b2350ecb311c2c4e635138e83dc44781aab05854;hb=9be89728f2a0ff17d54a0dba981015fa6405eb50;hpb=3cf719bc077a5f0d4f1a79279a5ba6e41d53c9b9 diff --git a/daemon/command.c b/daemon/command.c index b2350ec..48bed2d 100644 --- a/daemon/command.c +++ b/daemon/command.c @@ -36,14 +36,14 @@ 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 * commandv. We just have to check the list is non-empty. */ if (argv[0] == NULL) { - reply_with_error ("command: passed an empty list"); + reply_with_error ("passed an empty list"); return NULL; }