From: Lennart Poettering Date: Wed, 2 Jun 2010 13:40:43 +0000 (+0200) Subject: hostname: keep dots in hostname X-Git-Tag: 0.git+20100605+dfd8ee-1~9^2^2~28 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10a49d708df010645717d2791050caf8629f62c2;p=systemd hostname: keep dots in hostname --- diff --git a/src/hostname-setup.c b/src/hostname-setup.c index 3b988d4c..e9f722e6 100644 --- a/src/hostname-setup.c +++ b/src/hostname-setup.c @@ -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;