Your message dated Tue, 05 May 2009 15:39:39 +0000
with message-id <[email protected]>
and subject line Bug#526187: fixed in wireless-tools 29-2
has caused the Debian Bug report #526187,
regarding wireless-tools: exit with proper codes
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
526187: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526187
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wireless-tools
Version: 29-1.1
Severity: normal
Tags: patch

When iwconfig is currently run with an ethernet device as an argument,
it displays "no wireless extensions". But it doesn't give a proper exit
code.

I noticed that the exit status is propagated but not stored in main().
Thus this patch.

Did a brief testing, looks good to me.

r...@champaran:/tmp/wireless-tools-29$ iwconfig eth1
eth1      IEEE 802.11g  ESSID:"rrs"
          Mode:Managed  Frequency:2.437 GHz  Access Point:
00:16:B6:A5:E7:1C
          Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0
          Retry limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=78/100  Signal level=-51 dBm  Noise level=-90 dBm
          Rx invalid nwid:0  Rx invalid crypt:6  Rx invalid frag:0
          Tx excessive retries:1  Invalid misc:0   Missed beacon:0

r...@champaran:/tmp/wireless-tools-29$ echo $?
0
r...@champaran:/tmp/wireless-tools-29$ iwconfig eth0
eth0      no wireless extensions.

r...@champaran:/tmp/wireless-tools-29$ echo $?
161
r...@champaran:/tmp/wireless-tools-29$ iwconfig eth0
eth0      no wireless extensions.

r...@champaran:/tmp/wireless-tools-29$ echo $?
161
r...@champaran:/tmp/wireless-tools-29$ iwconfig eth0
eth0      no wireless extensions.

r...@champaran:/tmp/wireless-tools-29$ echo $?
161


I just checked iwconfig for now, am not sure if similar problems are
there elsewhere also.

Ritesh

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-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/dash

Versions of packages wireless-tools depends on:
ii  libc6                         2.9-8      GNU C Library: Shared libraries
ii  libiw29                       29-1.1     Wireless tools - library

wireless-tools recommends no packages.

wireless-tools suggests no packages.

-- no debconf information
1913c1913
<   int goterr = 0;
---
>   int ret = 0;
1932c1932
<       goterr = iw_print_version_info("iwconfig");
---
>       ret = iw_print_version_info("iwconfig");
1944c1944
<           print_info(skfd, argv[1], NULL, 0);
---
>           ret = print_info(skfd, argv[1], NULL, 0);
1947c1947
<           goterr = set_info(skfd, argv + 2, argc - 2, argv[1]);
---
>           ret = set_info(skfd, argv + 2, argc - 2, argv[1]);
1953c1953
<   return(goterr);
---
>   return(ret);

--- End Message ---
--- Begin Message ---
Source: wireless-tools
Source-Version: 29-2

We believe that the bug you reported is fixed in the latest version of
wireless-tools, which is due to be installed in the Debian FTP archive:

ifrename_29-2_amd64.deb
  to pool/main/w/wireless-tools/ifrename_29-2_amd64.deb
libiw-dev_29-2_amd64.deb
  to pool/main/w/wireless-tools/libiw-dev_29-2_amd64.deb
libiw29-udeb_29-2_amd64.udeb
  to pool/main/w/wireless-tools/libiw29-udeb_29-2_amd64.udeb
libiw29_29-2_amd64.deb
  to pool/main/w/wireless-tools/libiw29_29-2_amd64.deb
wireless-tools-udeb_29-2_amd64.udeb
  to pool/main/w/wireless-tools/wireless-tools-udeb_29-2_amd64.udeb
wireless-tools_29-2.diff.gz
  to pool/main/w/wireless-tools/wireless-tools_29-2.diff.gz
wireless-tools_29-2.dsc
  to pool/main/w/wireless-tools/wireless-tools_29-2.dsc
wireless-tools_29-2_amd64.deb
  to pool/main/w/wireless-tools/wireless-tools_29-2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guus Sliepen <[email protected]> (supplier of updated wireless-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 05 May 2009 16:22:49 +0200
Source: wireless-tools
Binary: wireless-tools ifrename libiw29 libiw-dev wireless-tools-udeb 
libiw29-udeb
Architecture: source amd64
Version: 29-2
Distribution: unstable
Urgency: low
Maintainer: Guus Sliepen <[email protected]>
Changed-By: Guus Sliepen <[email protected]>
Description: 
 ifrename   - Rename network interfaces based on various static criteria
 libiw-dev  - Wireless tools - development files
 libiw29    - Wireless tools - library
 libiw29-udeb - Tools for manipulating Linux Wireless Extensions (udeb)
 wireless-tools - Tools for manipulating Linux Wireless Extensions
 wireless-tools-udeb - Tools for manipulating Linux Wireless Extensions (udeb)
Closes: 526187
Changes: 
 wireless-tools (29-2) unstable; urgency=low
 .
   * Apply and extend patch from Ritesh Raj Sarraf returning proper exit codes
     on errors. Closes: #526187
   * Bump Standards-Version and debhelper compatibility level.
   * Remove spurious commands from Czech iwconfig manpage.
   * Update debian/copyright.
Checksums-Sha1: 
 36f90c1c2693394097b535d3fe50565f7017c964 1042 wireless-tools_29-2.dsc
 cbbdee3299559b36c942e5ddf198203146a9872c 8671 wireless-tools_29-2.diff.gz
 c918c08432b82043938f23bcb2179721f424abab 114956 wireless-tools_29-2_amd64.deb
 bbab8dcae5d3f6187ab23039f8e51ddb6912fe19 58202 ifrename_29-2_amd64.deb
 bb279d34e168bc19b12a24a0a0a2a078437428b0 33088 libiw29_29-2_amd64.deb
 500f333fc49afa8c3813639a570dc47fb0a3d162 54402 libiw-dev_29-2_amd64.deb
 ad0976a3a08527c0b8ebdd2893754af33dbf27cf 28456 
wireless-tools-udeb_29-2_amd64.udeb
 9853835460a906d8edaa33dd050211a1e727845f 14036 libiw29-udeb_29-2_amd64.udeb
Checksums-Sha256: 
 1992dc7e62544b2c9167cb2bbfd2d2bb8a96ff5f01b5a69bba3aea911d037004 1042 
wireless-tools_29-2.dsc
 4262f829f78ec3a08805969d9981e5e58d3e0871f38b0484b00c4c4fa8de34bd 8671 
wireless-tools_29-2.diff.gz
 9f3cb86c84a30564874ff7d81016a7517fdd4ba31ca0368221de3c8bf91559f0 114956 
wireless-tools_29-2_amd64.deb
 ca028b13752ab59896fae987edd7b94aeb2988414ee3150bdb5d4b1b85f0348f 58202 
ifrename_29-2_amd64.deb
 e88e573d6b2d86e48c982755a00d5e2dd7a1cee83458a578ad98b58332d2803a 33088 
libiw29_29-2_amd64.deb
 7d52eb37c0088d9b49524317c942e47241facaca309a87508c5e6f91f77d28e1 54402 
libiw-dev_29-2_amd64.deb
 8c52703cadb525cf4fa6bdbba1741df190b246e8ff1b0cc5a9ebc5177f7a0af4 28456 
wireless-tools-udeb_29-2_amd64.udeb
 639495339f03d2b9d470d38c794da6b23ca4306fa86d2528bff04fd46131bb31 14036 
libiw29-udeb_29-2_amd64.udeb
Files: 
 56c9c324087b5e8f5b0c15b2ac7c1079 1042 net extra wireless-tools_29-2.dsc
 2abcf262100b1f8e447b07498f591c69 8671 net extra wireless-tools_29-2.diff.gz
 b913f93143d3e3ebe0707fbb3bb1e29d 114956 net extra wireless-tools_29-2_amd64.deb
 5798eab5e417a1d54557fd886cb92522 58202 net extra ifrename_29-2_amd64.deb
 05fdb86e333a5106203e1fd6bb5a9846 33088 libs extra libiw29_29-2_amd64.deb
 0bac104072b7887e89e3ca4b161d6c91 54402 libdevel extra libiw-dev_29-2_amd64.deb
 47d52eb868658b3a0c4f7c24588d6d59 28456 debian-installer extra 
wireless-tools-udeb_29-2_amd64.udeb
 5dae7d70c6046c4db533a7fc24ff7465 14036 debian-installer extra 
libiw29-udeb_29-2_amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoATVIACgkQAxLow12M2nsI3QCeNXXOoqQMGqCAIbtzw0HfhB5U
GEsAnjz8krCwM9w+vPlnde/n+bqlDyu0
=X1+t
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to