diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-10-25 12:54:59 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-10-25 13:01:28 +0100 |
commit | c9670080e9b7e614101109d385c66c2fdc15e191 (patch) | |
tree | 830f4a6dbe32d087dbfbdc56175d2ff346318574 | |
parent | 1d5ec10659d67020c5b709e4df4c49bc0d59d58c (diff) | |
download | libguestfs-c9670080e9b7e614101109d385c66c2fdc15e191.tar.gz libguestfs-c9670080e9b7e614101109d385c66c2fdc15e191.tar.xz libguestfs-c9670080e9b7e614101109d385c66c2fdc15e191.zip |
daemon: Print failed path in stat command errors.
-rw-r--r-- | daemon/stat.c | 4 |
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; } |