From 446f00465636f625ea56229f23cadfb6c6f12aae Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 25 Feb 2011 02:52:07 +0100 Subject: [PATCH 1/1] agent: don't print warnings if a password was removed or timed out --- src/tty-ask-password-agent.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c index bedb0bc31..ee7681a2c 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; } -- 2.30.2