dhcpcd
dhcpcd copied to clipboard
Use a local variable instead of the optind
The optind
is a global variable that gets overwritten by reload_config()
, so the reconf_reboot()
used a wrong argument count. As a result, renewal of a single interface always caused renewal of all interfaces.
Also, the optind - 1
at the end of the function feel wrong as the reconf_reboot()
just processes the list of interface names.