]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/unit-files: we must not filter out names starting with a dot
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 30 Aug 2019 12:10:08 +0000 (14:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 30 Aug 2019 12:10:08 +0000 (14:10 +0200)
Fixes #13380.

src/shared/unit-file.c

index e15ce26940977b4b2cad08e9c7a27ddb791ef65d..b9b5268d0a60f30b0c4bbb31cd337c1632f07b5a 100644 (file)
@@ -242,7 +242,7 @@ int unit_file_build_name_map(
                 if (!lookup_paths_mtime_exclude(lp, *dir))
                         mtime = MAX(mtime, timespec_load(&st.st_mtim));
 
-                FOREACH_DIRENT(de, d, log_warning_errno(errno, "Failed to read \"%s\", ignoring: %m", *dir)) {
+                FOREACH_DIRENT_ALL(de, d, log_warning_errno(errno, "Failed to read \"%s\", ignoring: %m", *dir)) {
                         char *filename;
                         _cleanup_free_ char *_filename_free = NULL, *simplified = NULL;
                         const char *suffix, *dst = NULL;