chiark / gitweb /
hostnamed: allow UTF8 chars in pretty hostname again
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Oct 2012 19:24:14 +0000 (21:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Oct 2012 19:25:42 +0000 (21:25 +0200)
src/shared/util.c

index 50c4c08993e30f351ad1f2ffa1156564468a0297..1c97a8a94ae65386b7731c672e4e1248d7f65826 100644 (file)
@@ -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))