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:
parent
c0f9c7da07
commit
446f004656
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user