← Commit list

2adaa9053

Stefan Agner
Stefan Agner
2018-03-29
SUCCESS Duration: 141s

Subject

ifplugd: if SIOCSIFFLAGS fails with EADDRNOTAVAIL, don't die

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ifplugd.c+1 -1
@@ -367,7 +367,7 @@ static void up_iface(void)
/* Let user know we mess up with interface */
bb_error_msg("upping interface");
if (network_ioctl(SIOCSIFFLAGS, &ifrequest, "setting interface flags") < 0) {
- if (errno != ENODEV)
+ if (errno != ENODEV && errno != EADDRNOTAVAIL)
xfunc_die();
G.iface_exists = 0;
return;