You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by dh...@apache.org on 2026/03/09 08:15:50 UTC
(ranger) branch ds_RANGER-5508 created (now e8681ab34)
This is an automated email from the ASF dual-hosted git repository.
dhavalshah9131 pushed a change to branch ds_RANGER-5508
in repository https://gitbox.apache.org/repos/asf/ranger.git
at e8681ab34 RANGER-5508 : fix Runtime.exec parameters
This branch includes the following new commits:
new e8681ab34 RANGER-5508 : fix Runtime.exec parameters
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(ranger) 01/01: RANGER-5508 : fix Runtime.exec parameters
Posted by dh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dhavalshah9131 pushed a commit to branch ds_RANGER-5508
in repository https://gitbox.apache.org/repos/asf/ranger.git
commit e8681ab34b0e6e16a324b5babbb2ef5bc0077ac0
Author: dhavalshah9131 <dh...@gmail.com>
AuthorDate: Mon Mar 9 13:44:55 2026 +0530
RANGER-5508 : fix Runtime.exec parameters
---
.../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()));