update generator to emit each RESOLVE_DEVICE call
[libguestfs.git] / daemon / file.c
index e185132..2ba2aab 100644 (file)
@@ -74,7 +74,7 @@ do_cat (char *path)
   char *buf, *buf2;
 
   NEED_ROOT (NULL);
-  ABS_PATH (path,NULL);
+  ABS_PATH (path, return NULL);
 
   CHROOT_IN;
   fd = open (path, O_RDONLY);
@@ -391,7 +391,7 @@ do_file (char *path)
   char *buf;
   int len;
 
-  NEED_ROOT_OR_IS_DEVICE (path, return NULL);
+  REQUIRE_ROOT_OR_RESOLVE_DEVICE (path, return NULL);
 
   if (strncmp (path, "/dev/", 5) == 0)
     buf = (char *) path;