hostname-util: explain what 'LDH' is
This commit is contained in:
parent
1feb8eee2d
commit
9e815cf2c2
|
@ -89,6 +89,8 @@ int gethostname_strict(char **ret) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool valid_ldh_char(char c) {
|
bool valid_ldh_char(char c) {
|
||||||
|
/* "LDH" → "Letters, digits, hyphens", as per RFC 5890, Section 2.3.1 */
|
||||||
|
|
||||||
return
|
return
|
||||||
(c >= 'a' && c <= 'z') ||
|
(c >= 'a' && c <= 'z') ||
|
||||||
(c >= 'A' && c <= 'Z') ||
|
(c >= 'A' && c <= 'Z') ||
|
||||||
|
|
Loading…
Reference in New Issue