Bug#581604: fuser is mistaking ipv4 for ipv6

2010-05-29 Thread Craig Small
tags 581604 pending
thankyou
On Fri, May 14, 2010 at 11:04:42AM +0200, Mats Erik Andersson wrote:
 The program 'fuser' checks ipv6 socket when asked for 'ipv4_only',
 and conversely outputs ipv4 when asked for 'ipv6_only'.
Thanks for the patch, I have applied it to the upstream git repository.

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/ csmall at : enc.com.au
http://www.debian.org/  Debian GNU/Linux, software should be Free 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#581604: fuser is mistaking ipv4 for ipv6

2010-05-14 Thread Mats Erik Andersson
Package: psmisc
Version: 22.11-1
Severity: normal
Tags: patch

The program 'fuser' checks ipv6 socket when asked for 'ipv4_only',
and conversely outputs ipv4 when asked for 'ipv6_only'.

Patch included: the internal conditionals were convoluted!


Mats Erik Andersson, fil. dr

2459 41E9 C420 3F6D F68B  2E88 F768 4541 F25B 5D41

Abonnerar på: debian-mentors, debian-devel-games, debian-perl,
  debian-ipv6, debian-qa


--- psmisc-22.11.orig/src/fuser.c   2010-04-08 14:20:10.0 +0200
+++ psmisc-22.11/src/fuser.c2010-05-14 10:33:10.0 +0200
@@ -1056,7 +1056,7 @@ int main(int argc, char *argv[])
if (ipv4_only  ipv6_only)
usage(_
  (You cannot search for only IPv4 and only IPv6 sockets 
at the same time));
-   if (!ipv4_only) {
+   if (!ipv6_only) {
 #endif
if (tcp_connection_list != NULL)
find_net_sockets(match_inodes, tcp_connection_list,
@@ -1066,7 +1066,7 @@ int main(int argc, char *argv[])
 udp, netdev);
 #ifdef WITH_IPV6
}
-   if (!ipv6_only) {
+   if (!ipv4_only) {
if (tcp6_connection_list != NULL)
find_net6_sockets(match_inodes, tcp6_connection_list,
  tcp, netdev);



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org