Bug #3563
closedWireless reconfig generates unnecessary error
0%
Description
While debugging some WPA2 Enterprise issues I kept getting an error:
php: /interfaces.php The command '/sbin/ifconfig 'ath0_wlan0' inet delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
Dug through the code in /etc/inc/interfaces.inc and isolated the error to line 4967, which goes something like:
if (is_array($tmpifaces)) {
foreach ($tmpifaces as $tmpiface) {
if (strstr($iface, ":"))
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 {$iface} delete");
else
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet {$iface} delete");
}
}
Shouldn't the $iface in the strstr and the mwexec calls be $tmpiface?
Updated by Phillip Davis over 10 years ago
This sort of thing was fixed here https://github.com/pfsense/pfsense/commit/0d8fc8ec415ace48f7963b83224fc8ee186c9a48 and https://github.com/pfsense/pfsense/commit/6a3b460168a023b3cf1b866e0f57f2e3dbbb7908
Is that the reference you mean?
Does it work in 2.1.1?
Updated by Chris Buechler over 10 years ago
- Status changed from New to Feedback
- Target version deleted (
2.1.1)
should be what Phil noted there, already fixed in 2.1.1.
Updated by Chris Buechler over 10 years ago
- Status changed from Feedback to Resolved