kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject kudu git commit: mini_kdc: search for lsof in /usr/sbin as well
Date Wed, 02 Nov 2016 00:09:25 GMT
Repository: kudu
Updated Branches:
  refs/heads/master 758a5c45a -> 401a59274


mini_kdc: search for lsof in /usr/sbin as well

In RHEL 6, lsof is in /usr/sbin/ instead of /sbin, and this directory
isn't guaranteed to be in $PATH. This adds it to the search path.

Change-Id: I9a23a17fc2292edb899ae934c274951cf9c55b9f
Reviewed-on: http://gerrit.cloudera.org:8080/4906
Reviewed-by: Dan Burkert <danburkert@apache.org>
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/401a5927
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/401a5927
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/401a5927

Branch: refs/heads/master
Commit: 401a592742228ca9b8419021f87904e70689990b
Parents: 758a5c4
Author: Todd Lipcon <todd@apache.org>
Authored: Tue Nov 1 15:21:13 2016 -0700
Committer: Todd Lipcon <todd@apache.org>
Committed: Wed Nov 2 00:03:18 2016 +0000

----------------------------------------------------------------------
 src/kudu/security/mini_kdc.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/401a5927/src/kudu/security/mini_kdc.cc
----------------------------------------------------------------------
diff --git a/src/kudu/security/mini_kdc.cc b/src/kudu/security/mini_kdc.cc
index a5fd196..3da68ba 100644
--- a/src/kudu/security/mini_kdc.cc
+++ b/src/kudu/security/mini_kdc.cc
@@ -254,7 +254,7 @@ Status MiniKdc::WaitForKdcPorts() {
   // bind to the ports.
 
   string lsof;
-  RETURN_NOT_OK(GetBinaryPath("lsof", {"/sbin"}, &lsof));
+  RETURN_NOT_OK(GetBinaryPath("lsof", {"/sbin", "/usr/sbin"}, &lsof));
 
   vector<string> cmd = {
     lsof, "-wbn", "-Fn",


Mime
View raw message