diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-02 15:40:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-02 15:52:13 +0200 |
commit | 10a49d708df010645717d2791050caf8629f62c2 (patch) | |
tree | 3dfd6cb6e28dd3ced8c015910cbb0d3c415f84b7 /src/hostname-setup.c | |
parent | a6baa3f681fad58555e28c50589595d98ec81a23 (diff) |
hostname: keep dots in hostname
Diffstat (limited to 'src/hostname-setup.c')
-rw-r--r-- | src/hostname-setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hostname-setup.c b/src/hostname-setup.c index 3b988d4c8b..e9f722e622 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; |