X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fhostname-setup.c;h=e9f722e622a0f3b7bf644f33917542bed48ee3c4;hp=3b988d4c8b68dfdad2c25c545d736e0adb4b470a;hb=c59760eedae9d9de3be1572b9b612dfd8cc37547;hpb=e99e38bbdcca3fe5956823bdb3d38544ccf93221 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;