From: Lennart Poettering Date: Fri, 25 Feb 2011 01:52:07 +0000 (+0100) Subject: agent: don't print warnings if a password was removed or timed out X-Git-Tag: v19~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=446f00465636f625ea56229f23cadfb6c6f12aae;p=thirdparty%2Fsystemd.git agent: don't print warnings if a password was removed or timed out --- diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c index bedb0bc319a..ee7681a2c8a 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; }