aboutsummaryrefslogtreecommitdiff
path: root/networking/hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/hostname.c')
-rw-r--r--networking/hostname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/hostname.c b/networking/hostname.c
index dd2a20689..48e70db91 100644
--- a/networking/hostname.c
+++ b/networking/hostname.c
@@ -20,7 +20,7 @@ static void do_sethostname(char *s, int isfile)
return;
if (isfile) {
parser_t *parser = config_open2(s, xfopen_for_read);
- while (config_read(parser, &s, 1, 1, "# \t", 0)) {
+ while (config_read(parser, &s, 1, 1, "# \t", PARSE_NORMAL & ~PARSE_GREEDY)) {
do_sethostname(s, 0);
}
if (ENABLE_FEATURE_CLEAN_UP)