mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
@@ -109,7 +109,10 @@ static int parse_line(EtcHosts *hosts, unsigned nr, const char *line) {
|
||||
|
||||
r = dns_name_is_valid_ldh(name);
|
||||
if (r <= 0) {
|
||||
log_warning_errno(r, "/etc/hosts:%u: hostname \"%s\" is not valid, ignoring.", nr, name);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "/etc/hosts:%u: Failed to check the validity of hostname \"%s\", ignoring: %m", nr, name);
|
||||
else
|
||||
log_warning("/etc/hosts:%u: hostname \"%s\" is not valid, ignoring.", nr, name);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user