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.000000000 +0200
+++ psmisc-22.11/src/fuser.c    2010-05-14 10:33:10.000000000 +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

Reply via email to