basic/unit-file: don't filter out names starting with dot

Fixes #20859
Reverts 3796bdc55d
This commit is contained in:
Anita Zhang
2021-09-29 14:42:13 +02:00
committed by Lennart Poettering
parent e30a3ba16a
commit 14bb729534
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ int unit_file_build_name_map(
continue;
}
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;
_unused_ _cleanup_free_ char *_filename_free = NULL;
_cleanup_free_ char *simplified = NULL;