mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-07-15 20:59:30 +03:00
agent: don't print warnings if a password was removed or timed out
This commit is contained in:
@ -375,7 +375,14 @@ static int parse_password(const char *filename, char **wall) {
|
|||||||
packet_length = strlen(packet);
|
packet_length = strlen(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (r == -ETIME || r == -ENOENT) {
|
||||||
|
/* If the query went away, that's OK */
|
||||||
|
r = 0;
|
||||||
|
goto finish;
|
||||||
|
}
|
||||||
|
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
|
||||||
log_error("Failed to query password: %s", strerror(-r));
|
log_error("Failed to query password: %s", strerror(-r));
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user