[PATCH] ifup segfaulting on mistaken 'interfaces' file

Petr Stetiar ynezz at true.cz
Sun Nov 19 21:36:56 UTC 2006


Hi,

I've just faced ifup segfault on mistaken 'interfaces' file.

# cat interfaces.bad
iface eth0 inet
	address 192.168.0.50
	netmask 255.255.255.0

It's missing static method on first line, should be 'iface eth0 inet static'

# ifup -a
Segmentation fault

With patch applied:
# ifup -a
ifup: unknown method "(null)"


-- ynezz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifup.patch.gz
Type: application/octet-stream
Size: 330 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20061119/e224f8fc/attachment-0002.obj 


More information about the busybox mailing list