Package: wpasupplicant Version: 0.4.8-3 Severity: normal Tags: patch Hi,
when using an action script via "wpa-action" together with "wpa-action-timeout 0" in /etc/network/interfaces, /etc/wpa_supplicant/ifupdown.sh busy loops as the continue in the test for 0 timeout also skips the sleep at the end of the loop. The attached patch fixes this. elmar -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages wpasupplicant depends on: ii libc6 2.3.6-6 GNU C Library: Shared libraries ii libncurses5 5.5-1 Shared libraries for terminal hand ii libreadline5 5.1-7 GNU readline and history libraries ii libssl0.9.8 0.9.8a-8 SSL shared libraries wpasupplicant recommends no packages. -- no debconf information -- .'"`. /"\ | :' : Elmar Hoffmann <[EMAIL PROTECTED]> ASCII Ribbon Campaign \ / `. `' GPG key available via pgp.net against HTML email X `- & vCards / \
--- /etc/wpa_supplicant/ifupdown.sh.orig 2006-04-14 17:08:07.000000000 +0200 +++ /etc/wpa_supplicant/ifupdown.sh 2006-04-29 18:12:11.000000000 +0200 @@ -731,10 +731,7 @@ # success echo "$WPA_SUP_PNAME: action script $IF_WPA_ACTION succeeded" >/dev/stdout break - elif [ "$IF_WPA_ACTION_TIMEOUT" = "0" ]; then - # infinite wait - continue - elif [ "$WPA_ACTION_TIME" -ge "$IF_WPA_ACTION_TIMEOUT" ]; then + elif [ "$IF_WPA_ACTION_TIMEOUT" -gt "0" -a "$WPA_ACTION_TIME" -ge "$IF_WPA_ACTION_TIMEOUT" ]; then # NB: it is safe to check for wpa_cli's pidfile only after sufficient time has passed if [ ! -e "$WPA_CLI_PIDFILE" ]; then # failure
signature.asc
Description: Digital signature