From 10a49d708df010645717d2791050caf8629f62c2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 2 Jun 2010 15:40:43 +0200 Subject: [PATCH] hostname: keep dots in hostname --- src/hostname-setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5