commit 9a921d630cd8181f302ce1fb026d1dfbb94f1362
parent 7bca31aa6999d987f509a60bbbf9348e3c485906
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 5 Aug 2012 18:31:20 +0000
better log message for dirs
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/extractor_datasource.c b/src/main/extractor_datasource.c
@@ -1204,7 +1204,10 @@ EXTRACTOR_datasource_create_from_file_ (const char *filename,
if ( (0 != fstat (fd, &sb)) ||
(S_ISDIR (sb.st_mode)) )
{
- LOG_STRERROR_FILE ("fstat", filename);
+ if (! S_ISDIR (sb.st_mode))
+ LOG_STRERROR_FILE ("fstat", filename);
+ else
+ LOG ("Skipping directory `%s'\n", filename);
(void) close (fd);
return NULL;
}