dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

Use a local variable instead of the optind

Open gotthardp opened this issue 2 years ago • 0 comments

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.

gotthardp avatar Feb 10 '22 13:02 gotthardp