chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6baa3f
)
hostname: keep dots in hostname
author
Lennart Poettering
<lennart@poettering.net>
Wed, 2 Jun 2010 13:40:43 +0000
(15:40 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 2 Jun 2010 13:52:13 +0000
(15:52 +0200)
src/hostname-setup.c
patch
|
blob
|
history
diff --git
a/src/hostname-setup.c
b/src/hostname-setup.c
index 3b988d4c8b68dfdad2c25c545d736e0adb4b470a..e9f722e622a0f3b7bf644f33917542bed48ee3c4 100644
(file)
--- 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;