This is an automated email from the ASF dual-hosted git repository.
dhavalshah9131 pushed a commit to branch ranger-2.8
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.8 by this push:
new 19b807571 RANGER-5508 : fix Runtime.exec parameters (#869)
19b807571 is described below
commit 19b807571040476d364b40e558872893760317e6
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()));