mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
25300b5a1f
As it turns out machine_name_is_valid() does the exact same thing as hostname_is_valid() these days, as it just invoked that and checked the name length was < 64. However, hostname_is_valid() checks the length against HOST_NAME_MAX anyway (which is 64 on Linux), hence any additional check is redundant. We hence replace machine_name_is_valid() by a macro that simply maps it to hostname_is_valid() but sets the allow_trailing_dot parameter to false. We also move this this call to hostname-util.h, to the same place as the hostname_is_valid() declaration. |
||
---|---|---|
.. | ||
Makefile | ||
nss-mymachines.c | ||
nss-mymachines.sym |