This is an automated email from the ASF dual-hosted git repository.

JiaLiangC pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 772caed773 AMBARI-26622 Fix missing mode in sudo.makedir for root 
(#4163)
772caed773 is described below

commit 772caed7734f1b4763036809dbbfdda569d9ad0f
Author: Jeffrey Smith <[email protected]>
AuthorDate: Sun Aug 9 21:54:41 2026 -0400

    AMBARI-26622 Fix missing mode in sudo.makedir for root (#4163)
---
 ambari-common/src/main/python/resource_management/core/sudo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-common/src/main/python/resource_management/core/sudo.py 
b/ambari-common/src/main/python/resource_management/core/sudo.py
index f94bdc6925..93267e5488 100644
--- a/ambari-common/src/main/python/resource_management/core/sudo.py
+++ b/ambari-common/src/main/python/resource_management/core/sudo.py
@@ -139,7 +139,7 @@ if os.geteuid() == 0:
       raise
 
   def makedir(path, mode):
-    os.mkdir(path)
+    os.mkdir(path, mode)
 
   def symlink(source, link_name):
     os.symlink(source, link_name)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to