mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +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 >= 'A' && *p <= 'Z') ||
|
||||||
(*p >= '0' && *p <= '9') ||
|
(*p >= '0' && *p <= '9') ||
|
||||||
*p == '-' ||
|
*p == '-' ||
|
||||||
*p == '_')
|
*p == '_' ||
|
||||||
|
*p == '.')
|
||||||
*(d++) = *p;
|
*(d++) = *p;
|
||||||
|
|
||||||
*d = 0;
|
*d = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user