summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-10-25 12:54:59 +0100
committerRichard W.M. Jones <rjones@redhat.com>2010-10-25 13:01:28 +0100
commitc9670080e9b7e614101109d385c66c2fdc15e191 (patch)
tree830f4a6dbe32d087dbfbdc56175d2ff346318574 /daemon
parent1d5ec10659d67020c5b709e4df4c49bc0d59d58c (diff)
downloadlibguestfs-c9670080e9b7e614101109d385c66c2fdc15e191.tar.gz
libguestfs-c9670080e9b7e614101109d385c66c2fdc15e191.tar.xz
libguestfs-c9670080e9b7e614101109d385c66c2fdc15e191.zip
daemon: Print failed path in stat command errors.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/stat.c b/daemon/stat.c
index c939e8ed..0b3be4d9 100644
--- a/daemon/stat.c
+++ b/daemon/stat.c
@@ -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;
}