Package: busybox-static
Version: 1.10.2-2

ifup eth0 returns
Error: an inet prefix is expected rather than "192.168.1.1/4294967295".

part of config:

iface eth0 inet static
        address         192.168.1.1
        netmask         255.255.255.0

there are more than one whitespace (tab) between variable and value (netmask\t\t255.255.255.0)


% diff -u ifupdown.c.orig  ifupdown.c
--- ifupdown.c.orig     2008-10-24 00:00:00.000000000 +0400
+++ ifupdown.c  2008-10-24 00:01:25.000000000 +0400
@@ -810,6 +810,8 @@
                } else {
                        switch (currently_processing) {
                        case IFACE:
+                               /* ship any trailing whitespace */
+ rest_of_line = skip_whitespace(rest_of_line);
                                if (rest_of_line[0] == '\0')
bb_error_msg_and_die("option with empty value \"%s\"", buf);

--
sergio.






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to