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
(from parent 1:
4fa25d6
)
hostnamed: allow UTF8 chars in pretty hostname again
author
Lennart Poettering
<lennart@poettering.net>
Wed, 17 Oct 2012 19:24:14 +0000
(21:24 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 17 Oct 2012 19:25:42 +0000
(21:25 +0200)
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index 50c4c08993e30f351ad1f2ffa1156564468a0297..1c97a8a94ae65386b7731c672e4e1248d7f65826 100644
(file)
--- a/
src/shared/util.c
+++ b/
src/shared/util.c
@@
-5929,7
+5929,7
@@
bool string_is_safe(const char *p) {
assert(p);
for (t = p; *t; t++) {
- if (*t < ' ')
+ if (*t
> 0 && *t
< ' ')
return false;
if (strchr("\\\"\'", *t))