update busybox-power against BusyBox 1.21 release
[busybox-power] / debian / patches / parse-complete-hostname.patch
1 Parse the complete hostname when set from a file (busybox-1.10.2 behaviour)
2
3 --- a/networking/hostname.c
4 +++ b/networking/hostname.c
5 @@ -35,7 +35,7 @@ static void do_sethostname(char *s, int
6  //             return;
7         if (isfile) {
8                 parser_t *parser = config_open2(s, xfopen_for_read);
9 -               while (config_read(parser, &s, 1, 1, "# \t", PARSE_NORMAL & ~PARSE_GREEDY)) {
10 +               while (config_read(parser, &s, 1, 1, "# \t", PARSE_NORMAL)) {
11                         do_sethostname(s, 0);
12                 }
13                 if (ENABLE_FEATURE_CLEAN_UP)