Skip to content

Commit dd15045

Browse files
poetteringbluca
authored andcommitted
hostname-setup: don't pass "true" to a flags parameter
(cherry picked from commit 983d621) (cherry picked from commit e8731c0) (cherry picked from commit bf159bb)
1 parent 79f5c72 commit dd15045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/hostname-setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ int hostname_setup(bool really) {
151151
if (r < 0)
152152
log_warning_errno(r, "Failed to retrieve system hostname from kernel command line, ignoring: %m");
153153
else if (r > 0) {
154-
if (hostname_is_valid(b, true)) {
154+
if (hostname_is_valid(b, VALID_HOSTNAME_TRAILING_DOT)) {
155155
hn = b;
156156
source = HOSTNAME_TRANSIENT;
157157
} else {

0 commit comments

Comments
 (0)