agent: don't print warnings if a password was removed or timed out

This commit is contained in:
Lennart Poettering 2011-02-25 02:52:07 +01:00
parent c0f9c7da07
commit 446f004656

View file

@ -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;
}