From ded3464a1099cdeba616dfa7a0df3bcf8671207d Mon Sep 17 00:00:00 2001 From: William Roberts Date: Thu, 2 Jan 2014 14:34:54 -0800 Subject: [PATCH] toolbox-ls: re-introduce clobbered error message commit 403b1955 clobbered the error message on lstat() calls. Change-Id: Idbd24b648e3a85079b8f8541c0798bf944485ca1 --- toolbox/ls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toolbox/ls.c b/toolbox/ls.c index 8467628ad..c740f847e 100644 --- a/toolbox/ls.c +++ b/toolbox/ls.c @@ -316,6 +316,7 @@ static int listfile(const char *dirname, const char *filename, int flags) } if(lstat(pathname, &s) < 0) { + fprintf(stderr, "lstat '%s' failed: %s\n", pathname, strerror(errno)); return -1; }