1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-12 21:57:27 +03:00

shared/unit-files: we must not filter out names starting with a dot

Fixes #13380.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-08-30 14:10:08 +02:00
parent 13dcc96ffb
commit 29a45fe5aa

View 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;