ifupdown: correct ifstate update during 'ifup -a'. Closes 6212
authorFrank Bergmann <frank.frajasalo@googlemail.com>
Fri, 13 Mar 2015 09:05:08 +0000 (10:05 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 22 Mar 2015 16:04:27 +0000 (17:04 +0100)
commit6ca03f2dd82ee2a09f257fad7c2bf6898310c438
treeb2430893e999ab9157a4f29899734081227a0bb4
parent75a76269ba2549cb5392d7d720a4c393de01b934
ifupdown: correct ifstate update during 'ifup -a'. Closes 6212

When 'if -a' runs into an failure on an interface all further
interfaces won't be correctly updated in ifstate. This patch
inserts a new variable that only tracks the current interfaces
failure so that the write to ifstate can rely on this and not
the one for the functions return value.

Fixes https://bugs.busybox.net/show_bug.cgi?id=6212

Signed-off-by: Frank Bergmann <frank.frajasalo@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifupdown.c