chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
agent: don't print warnings if a password was removed or timed out
[elogind.git]
/
src
/
tty-ask-password-agent.c
diff --git
a/src/tty-ask-password-agent.c
b/src/tty-ask-password-agent.c
index bedb0bc319aafd9e0b01bdd747185ea447152578..ee7681a2c8a2fde62667bc98d337a36605213039 100644
(file)
--- 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;
}