1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

hostname: fix typo

Follow-up for af9c45d5b6c1b1962731dffc638a2320e5eef095.
This commit is contained in:
Yu Watanabe 2025-03-12 06:26:45 +09:00
parent ced634a62d
commit 1f5d8a6132

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);