hostname: fix typo

Follow-up for af9c45d5b6.
This commit is contained in:
Yu Watanabe
2025-03-12 06:26:56 +09:00
parent ced634a62d
commit 1f5d8a6132
+1 -1
View File
@@ -1232,7 +1232,7 @@ static int validate_and_substitute_hostname(const char *name, char **ret_substit
r = hostname_substitute_wildcards(substituted);
if (r < 0)
return log_error_errno(r, "Failed to substitute wildcards in hotname: %m");
return log_error_errno(r, "Failed to substitute wildcards in hostname: %m");
if (!hostname_is_valid(substituted, 0))
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid hostname '%s'", name);