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

dhavalshah9131 pushed a commit to branch ranger-2.9
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.9 by this push:
     new 309254681 RANGER-5508 : fix Runtime.exec parameters (#869)
309254681 is described below

commit 3092546816107ba98561f2175b4fd8a50bda7194
Author: dhavalshah9131 <[email protected]>
AuthorDate: Mon Mar 9 15:49:17 2026 +0530

    RANGER-5508 : fix Runtime.exec parameters (#869)
---
 .../org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
 
b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
index 23fcb879a..d89d3f0f1 100644
--- 
a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
+++ 
b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
@@ -369,7 +369,7 @@ private void buildUnixUserList(String command) throws 
Throwable {
 
                                // "id" is same across Linux / BSD / MacOSX
                                // gids are used as id might return groups with 
spaces, ie "domain users"
-                               Process process = Runtime.getRuntime().exec(new 
String[]{"bash", "-c", "id -G " + userName});
+                               Process process = Runtime.getRuntime().exec(new 
String[] {"id", "-G", userName});
 
                                try {
                                        reader = new BufferedReader(new 
InputStreamReader(process.getInputStream()));

Reply via email to