X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftty-ask-password-agent%2Ftty-ask-password-agent.c;h=47093b850dcf4f319a3634748dd9fb0e3e5949f8;hb=ef876bce92dcc1c4118a834fdba2ca26305ec5b7;hp=5fc27f9ae54dd50ecda5b9ba744a98fa8420ed2c;hpb=553acb7b6b8d4f16a4747b1f978e8b7888fbfb2c;p=elogind.git 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 5fc27f9ae..47093b850 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -385,7 +385,7 @@ static bool wall_tty_match(const char *path) { _cleanup_free_ char *p = NULL; if (!path_is_absolute(path)) - path = strappenda("/dev/", path); + path = strjoina("/dev/", path); r = lstat(path, &st); if (r < 0) @@ -438,7 +438,7 @@ static int show_passwords(void) { if (de->d_type != DT_REG) continue; - if (ignore_file(de->d_name)) + if (hidden_file(de->d_name)) continue; if (!startswith(de->d_name, "ask."))