summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-25 02:52:07 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-25 02:52:07 +0100
commit446f00465636f625ea56229f23cadfb6c6f12aae (patch)
tree0ffc35248914c0265dc741e55ce1f62225e07f1a
parentc0f9c7da07fccafed646e0a15df9bc132e3fc7fb (diff)
agent: don't print warnings if a password was removed or timed out
-rw-r--r--src/tty-ask-password-agent.c7
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;
}