Skip to content

Commit 24efff1

Browse files
authored
Merge pull request #3008 from nickanderson/ENT-12987/master
ENT-12987: Fixed path to lsof on Red Hat 7 and greater
2 parents d99b7b3 + 8873908 commit 24efff1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/paths.cf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,9 @@ bundle common paths
387387
"path[iptables_save]" string => "/sbin/iptables-save";
388388
"path[ls]" string => "/bin/ls";
389389
"path[lshw]" string => "/usr/sbin/lshw";
390-
"path[lsof]" string => "/usr/sbin/lsof";
390+
"path[lsof]" string => ifelse( "redhat_7|redhat_6", "/usr/sbin/lsof",
391+
"/usr/bin/lsof"
392+
);
391393
"path[netstat]" string => "/bin/netstat";
392394
"path[nologin]" string => "/sbin/nologin";
393395
"path[ping]" string => "/usr/bin/ping";

0 commit comments

Comments
 (0)