socklist in procinfo does not list tcp6, udp6, or raw6.

Bug #513837 reported by aporter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
procinfo (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: procinfo

/usr/bin/socklist (in oneiric, precise, etc) doesn't list tcp6, udp6, or raw6.

This can be found and fixed in some other bug reporting applications like opensuse in 2007:
  https://bugzilla.novell.com/show_bug.cgi?id=280032

It's a trivial fix. The patch is below:

--- socklist.orig 2010-01-28 10:33:43.977683369 -0500
+++ socklist 2010-01-28 10:33:25.757680751 -0500
@@ -87,12 +87,15 @@
            ($cmd) = ( $l=~/Name:\s*(\S+)/ );
            close(CMD);
    }
- printf "%s %6d %10d %6d %6d %4d %s\n",
+ printf "%-4s%6d %10d %6d %6d %4d %s\n",
             $_[0], $a ,$F[9], $F[7], $pid, $fd, $cmd;
     }
     close(FILE);
 }

 scheck("tcp");
+scheck("tcp6");
 scheck("udp");
+scheck("udp6");
 scheck("raw");
+scheck("raw6");

(also attached)
The socklist in ubuntu right now doesn't list all of the ports. Some open ports ONLY show up in tcp6 and udp6.

thanks,

Tags: patch
Revision history for this message
aporter (aporter) wrote :
aporter (aporter)
description: updated
aporter (aporter)
tags: added: patch
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package procinfo - 1:2.0.304-3

---------------
procinfo (1:2.0.304-3) unstable; urgency=medium

  * QA upload.
  * debian/control:
    + Move the git repository to collab-maint.
    + Bump Standards-Version to 4.1.0, no changes needed.
  * Add patch to fix linking with --as-needed.
    Thanks to Martin Pitt <email address hidden> for the patch.
    Closes: #641521; LP: #771106

 -- Mattia Rizzolo <email address hidden> Wed, 23 Aug 2017 13:16:24 +0200

Changed in procinfo (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.