From 869b4f2d59febc3103979db5b5e6ab0f4ce0d8d3 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 5 Jun 2008 18:56:58 +0200 Subject: [PATCH] scan_dir(): Print error reason if lstat() failed. --- create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create.c b/create.c index 638ba19..5c243d8 100644 --- a/create.c +++ b/create.c @@ -143,8 +143,8 @@ static int scan_dir(char *dirname, uint64_t *parent_dir_num) if (!strcmp(entry->d_name, "..")) continue; if (lstat(entry->d_name, &s) == -1) { - WARNING_LOG("lstat error for %s/%s\n", dirname, - entry->d_name); + WARNING_LOG("lstat error for %s/%s (%s)\n", + dirname, entry->d_name, strerror(errno)); continue; } m = s.st_mode; -- 2.39.2