mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
basic/unit-file: don't filter out names starting with dot
Fixes #20859 Reverts 3796bdc55d6ba499d1049f749072218879e619a7
This commit is contained in:
parent
e30a3ba16a
commit
14bb729534
@ -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;
|
||||
|
@ -68,6 +68,12 @@ cat <<EOF >/tmp/testfile.service
|
||||
ExecStart = echo hello
|
||||
EOF
|
||||
|
||||
# Prevent regression from #13380 and #20859 where we can't verify hidden files
|
||||
cp /tmp/testfile.service /tmp/.testfile.service
|
||||
|
||||
systemd-analyze verify /tmp/.testfile.service
|
||||
|
||||
rm /tmp/.testfile.service
|
||||
|
||||
# Zero exit status since the value used for comparison determine exposure to security threats is by default 100
|
||||
systemd-analyze security --offline=true /tmp/testfile.service
|
||||
|
Loading…
x
Reference in New Issue
Block a user