projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c3112
)
tty-ask-pwd-agent: minor simplification by using FOREACH_DIRENT instead of FOREACH_DI...
author
Franck Bui
<fbui@suse.com>
Tue, 17 Sep 2019 10:30:31 +0000
(12:30 +0200)
committer
Franck 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
patch
|
blob
|
history
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
f57f0ec
..
72b04e6
100644
(file)
--- 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;