From c9670080e9b7e614101109d385c66c2fdc15e191 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 25 Oct 2010 12:54:59 +0100 Subject: [PATCH] daemon: Print failed path in stat command errors. --- daemon/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 1.8.3.1