diff options
Diffstat (limited to 'src/tty-ask-password-agent.c')
-rw-r--r-- | src/tty-ask-password-agent.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c index bedb0bc319..ee7681a2c8 100644 --- a/src/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent.c @@ -375,7 +375,14 @@ static int parse_password(const char *filename, char **wall) { packet_length = strlen(packet); } + if (r == -ETIME || r == -ENOENT) { + /* If the query went away, that's OK */ + r = 0; + goto finish; + } + if (r < 0) { + log_error("Failed to query password: %s", strerror(-r)); goto finish; } |