summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inotify.c b/src/inotify.c
index 5776feb..7425b15 100644
--- a/src/inotify.c
+++ b/src/inotify.c
@@ -151,7 +151,7 @@ void set_dynamic_inotify(int flag, int total_size, struct crec **rhash, int revh
if (stat(ah->fname, &buf) == -1 || !(S_ISDIR(buf.st_mode)))
{
my_syslog(LOG_ERR, _("bad dynamic directory %s: %s"),
- ah->fname, strerror(errno));
+ ah->fname, (S_ISDIR(buf.st_mode)) ? strerror(errno) : _("not a directory"));
continue;
}