hostname: keep dots in hostname

This commit is contained in:
Lennart Poettering
2010-06-02 15:52:13 +02:00
parent a6baa3f681
commit 10a49d708d
+2 -1
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;