chiark / gitweb /
hostname: only suppress setting of pretty hostname if it is non-equal to the static...
[elogind.git] / src / core / hostname-setup.c
index ac508af122a3104c4cad7b049451b2e8e082527d..8aa1cff1d30f23ad1a42826a487a7e8540a11beb 100644 (file)
@@ -42,7 +42,7 @@ static int read_and_strip_hostname(const char *path, char **hn) {
         if (r < 0)
                 return r;
 
-        hostname_cleanup(s);
+        hostname_cleanup(s, false);
 
         if (isempty(s)) {
                 free(s);