summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hostname-setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hostname-setup.c b/src/hostname-setup.c
index 3b988d4..e9f722e 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;