mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
hostname: keep dots in hostname
This commit is contained in:
parent
a6baa3f681
commit
10a49d708d
@ -52,7 +52,8 @@ static char* strip_bad_chars(char *s) {
|
||||
(*p >= 'A' && *p <= 'Z') ||
|
||||
(*p >= '0' && *p <= '9') ||
|
||||
*p == '-' ||
|
||||
*p == '_')
|
||||
*p == '_' ||
|
||||
*p == '.')
|
||||
*(d++) = *p;
|
||||
|
||||
*d = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user