diff options
author | Dominik Derigs <dl6er@dl6er.de> | 2021-09-22 15:32:59 +0200 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2021-09-23 11:02:11 +0100 |
commit | ea7a05ad431527743688f485e3700ab321a05b52 (patch) | |
tree | 90522310708e9ee10a7a3b0f5d6e6a6f9730f2a6 | |
parent | 26bbf5a314d833beaf0f147d24409969f05f3dba (diff) | |
download | dnsmasq-ea7a05ad431527743688f485e3700ab321a05b52.tar.gz |
Correcly warn if dynamic directory is actually no directory
Signed-off-by: DL6ER <dl6er@dl6er.de>
-rw-r--r-- | src/inotify.c | 2 |
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; } |