Package: whereami
Version: 0.3.32
Severity: important
Tags: patch
testsupplicant uses inverted logic. "exit 0" should be used to indicate
success, not "exit 1" (and vice versa).
Patch supplied.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages whereami depends on:
ii debconf [debconf-2.0] 1.5.13 Debian configuration management sy
ii fping 2.4b2-to-ipv6-14 sends ICMP ECHO_REQUEST packets to
ii iputils-ping 3:20020927-6 Tools to test the reachability of
ii netbase 4.29 Basic TCP/IP networking system
ii perl 5.8.8-7 Larry Wall's Practical Extraction
Versions of packages whereami recommends:
ii iputils-arping 3:20020927-6 Tool to send ICMP echo requests to
ii resolvconf 1.37 nameserver information handler
ii wireless-tools 28-1 Tools for manipulating Linux Wirel
-- debconf information:
* whereami/how_to_configure:
--- scripts/tests/testsupplicant 2006-04-11 01:56:18.000000000 +0200
+++ scripts/tests/testsupplicant-new 2007-05-07 15:45:18.000000000 +0200
@@ -42,11 +42,11 @@
while [ "$MAXATTEMPTS" -gt "0" ] ; do
if /sbin/wpa_cli -i ${INTERFACE} status | grep 'wpa_state=COMPLETED'
>/dev/null ; then
# Success
- exit 1
+ exit 0
fi
if [ "`iwconfig ${INTERFACE} | grep Encryption | cut -f3 -d: `" =
"restricted" ] ; then
# Success
- exit 1
+ exit 0
fi
# Otherwise we loop again until we have exceeded the timeout...
sleep 1
@@ -60,4 +60,4 @@
pkill wpa_supplicant
fi
-exit 0
+exit 1