d052f3a09dcc191d3d10ee4c2942bea9f93aedbc
[busybox-power] / debian / patches / parse-complete-hostname.patch
1 Parse the complete hostname when set from a file (busybox-1.10.2 behaviour)
2 By Dennis Groenen <tj.groenen@gmail.com> - 2011-08-19
3 ---
4
5 --- a/networking/hostname.c
6 +++ b/networking/hostname.c
7 @@ -35,7 +35,7 @@ static void do_sethostname(char *s, int
8  //             return;
9         if (isfile) {
10                 parser_t *parser = config_open2(s, xfopen_for_read);
11 -               while (config_read(parser, &s, 1, 1, "# \t", PARSE_NORMAL & ~PARSE_GREEDY)) {
12 +               while (config_read(parser, &s, 1, 1, "# \t", PARSE_NORMAL)) {
13                         do_sethostname(s, 0);
14                 }
15                 if (ENABLE_FEATURE_CLEAN_UP)