From: Lennart Poettering Date: Wed, 2 Jun 2010 13:40:43 +0000 (+0200) Subject: hostname: keep dots in hostname X-Git-Tag: v1~244 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=10a49d708df010645717d2791050caf8629f62c2 hostname: keep dots in hostname --- diff --git a/src/hostname-setup.c b/src/hostname-setup.c index 3b988d4c8..e9f722e62 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;