projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1feb8ee
)
hostname-util: explain what 'LDH' is
author
Lennart Poettering
<lennart@poettering.net>
Fri, 11 Dec 2020 15:26:04 +0000
(16:26 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 15 Dec 2020 16:59:44 +0000
(17:59 +0100)
src/basic/hostname-util.c
patch
|
blob
|
history
diff --git
a/src/basic/hostname-util.c
b/src/basic/hostname-util.c
index 5c3157fdf20c723c217b0ac1ca7fabf8a65f128e..82cd37b15434eabca26ba89f1622c2ace98ef446 100644
(file)
--- a/
src/basic/hostname-util.c
+++ b/
src/basic/hostname-util.c
@@
-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') ||