lsof returns incorrect informations with '--' option

Bug #909151 reported by slamdunk on 2011-12-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsof (Ubuntu)

Bug Description

When a command like this is run:

$> lsof -n -P -i -- /dev/null

a list of open files relative to sockets and /dev/null files should be displayed together. In that case I get only the output relative to "-n -P -i".

The lsof's version on repository is quite "old", 4.81. Please update it.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: lsof 4.81.dfsg.1-1build1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic-pae 3.0.4
Uname: Linux 3.0.0-12-generic-pae i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Tue Dec 27 21:58:48 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
 PATH=(custom, no user)
SourcePackage: lsof
UpgradeStatus: Upgraded to oneiric on 2011-09-15 (103 days ago)

slamdunk (antongiulio05) wrote :
slamdunk (antongiulio05) on 2011-12-28
summary: - lsof returns uncorrect informations with '--' option
+ lsof returns incorrect informations with '--' option
Dave Gilbert (ubuntu-treblig) wrote :

Hi slamdunk,
  I believe the problem here is that your '-i' is expected to be followed with a value, and the -i is consuming the --; but I agree this is a bug.

Changed in lsof (Ubuntu):
importance: Undecided → Low
status: New → Triaged
slamdunk (antongiulio05) wrote :

Hi Dave,

you can run 'lsof -i' without options (for example different case is '-c' that needs one parameter). In Ubuntu 10.04.3 LTS it works fine but not in Ubuntu 11.10.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers