You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ec...@apache.org on 2017/09/20 13:26:45 UTC

ambari git commit: AMBARI-21970. Enable sticky bit for curl_krb_cache (echekanskiy)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 412c6cac4 -> 629f3ee6d


AMBARI-21970. Enable sticky bit for curl_krb_cache (echekanskiy)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/629f3ee6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/629f3ee6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/629f3ee6

Branch: refs/heads/branch-2.6
Commit: 629f3ee6d0433fe01523af7c20a133229926e9dc
Parents: 412c6ca
Author: Eugene Chekanskiy <ec...@apache.org>
Authored: Wed Sep 20 16:26:36 2017 +0300
Committer: Eugene Chekanskiy <ec...@apache.org>
Committed: Wed Sep 20 16:26:36 2017 +0300

----------------------------------------------------------------------
 .../resource_management/libraries/functions/curl_krb_request.py    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/629f3ee6/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py b/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
index 72bc5c6..95e8625 100644
--- a/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
+++ b/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
@@ -111,7 +111,7 @@ def curl_krb_request(tmp_dir, keytab, principal, url, cache_file_prefix,
   curl_krb_cache_path = os.path.join(tmp_dir, "curl_krb_cache")
   if not os.path.exists(curl_krb_cache_path):
     os.makedirs(curl_krb_cache_path)
-  os.chmod(curl_krb_cache_path, 0777)
+  os.chmod(curl_krb_cache_path, 01777)
 
   ccache_file_path = "{0}{1}{2}_{3}_cc_{4}".format(curl_krb_cache_path, os.sep, cache_file_prefix, user, ccache_file_name)
   kerberos_env = {'KRB5CCNAME': ccache_file_path}