chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c0f9c7d
)
agent: don't print warnings if a password was removed or timed out
author
Lennart Poettering
<lennart@poettering.net>
Fri, 25 Feb 2011 01:52:07 +0000
(
02:52
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 25 Feb 2011 01:52:07 +0000
(
02:52
+0100)
src/tty-ask-password-agent.c
patch
|
blob
|
history
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;
}