mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
hostname-setup: don't pass "true" to a flags parameter
This commit is contained in:
committed by
Mike Yuan
parent
3121374ca4
commit
983d621e11
@@ -150,7 +150,7 @@ int hostname_setup(bool really) {
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to retrieve system hostname from kernel command line, ignoring: %m");
|
||||
else if (r > 0) {
|
||||
if (hostname_is_valid(b, true)) {
|
||||
if (hostname_is_valid(b, VALID_HOSTNAME_TRAILING_DOT)) {
|
||||
hn = b;
|
||||
source = HOSTNAME_TRANSIENT;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user