]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tty-ask-pwd-agent: minor simplification by using FOREACH_DIRENT instead of FOREACH_DI...
authorFranck Bui <fbui@suse.com>
Tue, 17 Sep 2019 10:30:31 +0000 (12:30 +0200)
committerFranck Bui <fbui@suse.com>
Sat, 5 Oct 2019 06:08:24 +0000 (08:08 +0200)
src/tty-ask-password-agent/tty-ask-password-agent.c

index f57f0ec261ba5872876f8a4fa52647db44f57911..72b04e6f0e708d1490c9aece7b6511140cf5d9a3 100644 (file)
@@ -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;