From: Richard W.M. Jones Date: Mon, 25 Oct 2010 11:54:59 +0000 (+0100) Subject: daemon: Print failed path in stat command errors. X-Git-Tag: 1.5.24~16 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=c9670080e9b7e614101109d385c66c2fdc15e191;p=libguestfs.git daemon: Print failed path in stat command errors. --- diff --git a/daemon/stat.c b/daemon/stat.c index c939e8e..0b3be4d 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; }