]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostname-util: explain what 'LDH' is
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Dec 2020 15:26:04 +0000 (16:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 15 Dec 2020 16:59:44 +0000 (17:59 +0100)
src/basic/hostname-util.c

index 5c3157fdf20c723c217b0ac1ca7fabf8a65f128e..82cd37b15434eabca26ba89f1622c2ace98ef446 100644 (file)
@@ -89,6 +89,8 @@ int gethostname_strict(char **ret) {
 }
 
 bool valid_ldh_char(char c) {
+        /* "LDH" → "Letters, digits, hyphens", as per RFC 5890, Section 2.3.1 */
+
         return
                 (c >= 'a' && c <= 'z') ||
                 (c >= 'A' && c <= 'Z') ||