mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
simplify lsof call
This commit is contained in:
parent
221d27423e
commit
3211071b9f
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class LsofPorts < PortsInfo
|
|||
|
||||
# -F p=pid, c=command, P=protocol name, t=type, n=internet addresses
|
||||
# see 'OUTPUT FOR OTHER PROGRAMS' in LSOF(8)
|
||||
lsof_cmd = inspec.command("#{@lsof} -nP -iTCP -iUDP -FpctPn")
|
||||
lsof_cmd = inspec.command("#{@lsof} -nP -i -FpctPn")
|
||||
return nil if lsof_cmd.exit_status.to_i != 0
|
||||
|
||||
# build this with formatted output (-F) from lsof
|
||||
|
|
Loading…
Reference in a new issue