X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fhostname-setup.c;h=8aa1cff1d30f23ad1a42826a487a7e8540a11beb;hp=7894f8a5f2e5f35528d8512e5359f73a778c375e;hb=4d8ddba9d71e51356cc9488f906b8fef89c60c23;hpb=f274ece0f76b5709408821e317e87aef76123db6 diff --git a/src/core/hostname-setup.c b/src/core/hostname-setup.c index 7894f8a5f..8aa1cff1d 100644 --- a/src/core/hostname-setup.c +++ b/src/core/hostname-setup.c @@ -29,6 +29,7 @@ #include "macro.h" #include "util.h" #include "log.h" +#include "fileio.h" static int read_and_strip_hostname(const char *path, char **hn) { char *s; @@ -41,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);