1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

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