update all NEED_ROOT uses
[libguestfs.git] / daemon / ls.c
index 8ae150b..8dba1bf 100644 (file)
@@ -37,7 +37,7 @@ do_ls (char *path)
   DIR *dir;
   struct dirent *d;
 
-  NEED_ROOT (NULL);
+  NEED_ROOT (return NULL);
   ABS_PATH (path, return NULL);
 
   CHROOT_IN;