[Bug 315] New: Error parsing 'interfaces' file with multi-whitespace after netmask parm
bugzilla at busybox.net
bugzilla at busybox.net
Mon May 4 10:53:20 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=315
Target: Intel/x86; tested & used on LEAF firewall platform
Build: BusyBox v1.12.4 (2009-01-31 16:56:47 UTC) multi-call
binary
Summary: Error parsing 'interfaces' file with multi-whitespace
after netmask parm
Product: Busybox
Version: 1.12.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Networking
AssignedTo: unassigned at busybox.net
ReportedBy: gmfhemskhl at mailinator.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
First, for a baseline, I have checked and the problem does not manifest in
BusyBox v1.2.1 (2006.09.04-14:45+0000) multi-call binary
In the interfaces file, for the 'netmask' parameter (but not address or gateway
parms!) if there are two or more whitespace chars (tab & space tested) between
the netmask token and the parameter then I get the following error:
=-=-=-=-=-=-=-=-
Reconfiguring network interfaces: Error: an inet prefix is expected rather
than "172.16.1.254/4294967295".
=-=-=-=-=-=-=-=-
Sample problem config (all whitespace below are simple SPACE chars; single
spaces except for preceding the netmask parm):
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.16.1.254
netmask 255.255.255.0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Workaround is obviously to reduce whitespace after the netmask parm, to be only
a single character of whitespace.
Thx for BB!
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list