chiark / gitweb /
conf-files: log when we skip a drop-in configuration file
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Sep 2017 09:41:41 +0000 (11:41 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 13 Sep 2017 09:41:41 +0000 (11:41 +0200)
src/basic/conf-files.c

index 21921a43e104c889a0fb848c91db4891ced44ba0..d776583c05d9532e1571b19a8ef5873f358bb84b 100644 (file)
@@ -57,8 +57,10 @@ static int files_add(Hashmap *h, const char *suffix, const char *root, unsigned
         FOREACH_DIRENT(de, dir, return -errno) {
                 char *p;
 
-                if (!dirent_is_file_with_suffix(de, suffix))
+                if (!dirent_is_file_with_suffix(de, suffix)) {
+                        log_debug("Ignoring %s/%s, because it's not a regular file with suffix %s.", dirpath, de->d_name, strna(suffix));
                         continue;
+                }
 
                 if (flags & CONF_FILES_EXECUTABLE) {
                         struct stat st;