daemon: Print failed path in stat command errors.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 25 Oct 2010 11:54:59 +0000 (12:54 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 25 Oct 2010 12:01:28 +0000 (13:01 +0100)
daemon/stat.c

index c939e8e..0b3be4d 100644 (file)
@@ -42,7 +42,7 @@ do_stat (const char *path)
   CHROOT_OUT;
 
   if (r == -1) {
-    reply_with_perror ("stat");
+    reply_with_perror ("%s", path);
     return NULL;
   }
 
@@ -89,7 +89,7 @@ do_lstat (const char *path)
   CHROOT_OUT;
 
   if (r == -1) {
-    reply_with_perror ("stat");
+    reply_with_perror ("%s", path);
     return NULL;
   }