df: Add --uuid option to print guest UUIDs instead of names (RHBZ#646821).
[libguestfs.git] / daemon / stat.c
index 20f4b70..0b3be4d 100644 (file)
@@ -42,7 +42,7 @@ do_stat (const char *path)
   CHROOT_OUT;
 
   if (r == -1) {
   CHROOT_OUT;
 
   if (r == -1) {
-    reply_with_perror ("stat");
+    reply_with_perror ("%s", path);
     return NULL;
   }
 
     return NULL;
   }
 
@@ -89,7 +89,7 @@ do_lstat (const char *path)
   CHROOT_OUT;
 
   if (r == -1) {
   CHROOT_OUT;
 
   if (r == -1) {
-    reply_with_perror ("stat");
+    reply_with_perror ("%s", path);
     return NULL;
   }
 
     return NULL;
   }
 
@@ -151,7 +151,7 @@ do_lstatlist (const char *path, char *const *names)
   CHROOT_OUT;
 
   if (path_fd == -1) {
   CHROOT_OUT;
 
   if (path_fd == -1) {
-    reply_with_perror ("lstatlist: %s", path);
+    reply_with_perror ("%s", path);
     free (ret->guestfs_int_stat_list_val);
     free (ret);
     return NULL;
     free (ret->guestfs_int_stat_list_val);
     free (ret);
     return NULL;