Actions
Bug #3563
closedWireless reconfig generates unnecessary error
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Wireless
Target version:
-
Start date:
04/01/2014
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:
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?
Actions