Project

General

Profile

Actions

Bug #3563

closed

Wireless reconfig generates unnecessary error

Added by not george about 10 years ago. Updated almost 10 years ago.

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 #2

Updated by Chris Buechler about 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.

Actions #3

Updated by Chris Buechler almost 10 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF