From: Andre Noll Date: Thu, 5 Jun 2008 16:56:58 +0000 (+0200) Subject: scan_dir(): Print error reason if lstat() failed. X-Git-Tag: v0.0.3~21 X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=commitdiff_plain;h=869b4f2d59febc3103979db5b5e6ab0f4ce0d8d3 scan_dir(): Print error reason if lstat() failed. --- 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;