dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
e63f21
From 84e1818ce1dc9f5f7eb7b4d4bc87124d82c5080f Mon Sep 17 00:00:00 2001
e63f21
From: Anita Zhang <the.anitazha@gmail.com>
e63f21
Date: Tue, 28 Sep 2021 23:52:39 -0700
e63f21
Subject: [PATCH] basic/unit-file: don't filter out names starting with dot
e63f21
e63f21
Fixes #20859
e63f21
---
e63f21
 src/basic/unit-file.c | 2 +-
e63f21
 1 file changed, 1 insertion(+), 1 deletion(-)
e63f21
e63f21
diff --git a/src/basic/unit-file.c b/src/basic/unit-file.c
e63f21
index 884a0674a9..0d58b1c4fe 100644
e63f21
--- a/src/basic/unit-file.c
e63f21
+++ b/src/basic/unit-file.c
e63f21
@@ -284,7 +284,7 @@ int unit_file_build_name_map(
e63f21
                         continue;
e63f21
                 }
e63f21
 
e63f21
-                FOREACH_DIRENT(de, d, log_warning_errno(errno, "Failed to read \"%s\", ignoring: %m", *dir)) {
e63f21
+                FOREACH_DIRENT_ALL(de, d, log_warning_errno(errno, "Failed to read \"%s\", ignoring: %m", *dir)) {
e63f21
                         char *filename;
e63f21
                         _cleanup_free_ char *_filename_free = NULL, *simplified = NULL;
e63f21
                         const char *suffix, *dst = NULL;
e63f21
-- 
e63f21
2.31.1
e63f21