From: Zbigniew Jędrzejewski-Szmek Date: Fri, 30 Aug 2019 12:10:08 +0000 (+0200) Subject: shared/unit-files: we must not filter out names starting with a dot X-Git-Tag: v243~13^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29a45fe5aa689fa672b7791521584791b84a28b7;p=thirdparty%2Fsystemd.git shared/unit-files: we must not filter out names starting with a dot Fixes #13380. --- diff --git a/src/shared/unit-file.c b/src/shared/unit-file.c index e15ce269409..b9b5268d0a6 100644 --- a/src/shared/unit-file.c +++ b/src/shared/unit-file.c @@ -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;