lsof faulty output while using -F option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lsof (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
After upgrading to xenial, the -F option returns faulty output especially when used with field character 'n'.
OS version --> xenial, lsof --> 4.89 :
# lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
# uname -a
Linux some-hostname.com 4.4.0-1020-aws #29-Ubuntu SMP Wed Jun 14 15:54:52 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# dpkg -l lsof
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii lsof 4.89+dfsg-0.1 amd64 Utility to list open files
Running lsof with '-Fn' lists some entries starting with 'f' for e.g. f5, f8, f11 below: (hostnames/port no. changed below)
# lsof -a -iTCP -sTCP:ESTABLISHED -P -Fn
p11628
f5
nsome-hostname.
f8
nlocalhost:
f11
nlocalhost:
p25352
-------
While on precise it still seems to work fine:
OS version --> precise, lsof --> 4.81
# lsb_release -rd
Description: Ubuntu 12.04.5 LTS
Release: 12.04
# uname -a
Linux some-hostname.com 3.13.0-117-generic #164~precise1-
# dpkg -l lsof
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii lsof 4.81.dfsg.1-1build1 List open files
Running lsof with '-Fn' option in precise doesn't show anything like 'f10,f8,f5,f11' that's seen for xenial as put above. (hostnames/port no. changed below)
# lsof -a -iTCP -sTCP:ESTABLISHED -P -Fn
p23957
nsome-hostname.
p22118
nlocalhost:
nlocalhost:
nsome-hostname.
p15128