1
0
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:
Lennart Poettering 2010-06-02 15:40:43 +02:00
parent a6baa3f681
commit 10a49d708d

View File

@ -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;