summaryrefslogtreecommitdiff
path: root/src/tty-ask-password-agent
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2019-09-17 12:30:31 +0200
committerFranck Bui <fbui@suse.com>2019-10-05 08:08:24 +0200
commit1503bcb12ec9ae775a0b3435c9f2dfdd5204e09e (patch)
tree01e0acd7440320c6b9f97aeec002e285708a2b15 /src/tty-ask-password-agent
parent27c3112dcbd1b5f171c36c32550d9c6331375b0b (diff)
downloadsystemd-1503bcb12ec9ae775a0b3435c9f2dfdd5204e09e.tar.gz
tty-ask-pwd-agent: minor simplification by using FOREACH_DIRENT instead of FOREACH_DIRENT_ALL
Diffstat (limited to 'src/tty-ask-password-agent')
-rw-r--r--src/tty-ask-password-agent/tty-ask-password-agent.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c
index f57f0ec261..72b04e6f0e 100644
--- a/src/tty-ask-password-agent/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent/tty-ask-password-agent.c
@@ -462,7 +462,7 @@ static int process_password_files(void) {
return log_error_errno(errno, "Failed to open /run/systemd/ask-password: %m");
}
- FOREACH_DIRENT_ALL(de, d, return log_error_errno(errno, "Failed to read directory: %m")) {
+ FOREACH_DIRENT(de, d, return log_error_errno(errno, "Failed to read directory: %m")) {
_cleanup_free_ char *p = NULL;
int q;
@@ -472,9 +472,6 @@ static int process_password_files(void) {
if (de->d_type != DT_REG)
continue;
- if (hidden_or_backup_file(de->d_name))
- continue;
-
if (!startswith(de->d_name, "ask."))
continue;