diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-08-30 14:10:08 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-08-30 14:10:08 +0200 |
commit | 29a45fe5aa689fa672b7791521584791b84a28b7 (patch) | |
tree | 28b108630b3191e772323c19fd5713bddd68497e | |
parent | docs: describe valid unit names in systemd.unit(5) (diff) | |
download | systemd-29a45fe5aa689fa672b7791521584791b84a28b7.tar.xz systemd-29a45fe5aa689fa672b7791521584791b84a28b7.zip |
shared/unit-files: we must not filter out names starting with a dot
Fixes #13380.
-rw-r--r-- | src/shared/unit-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/unit-file.c b/src/shared/unit-file.c index e15ce26940..b9b5268d0a 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; |