This is an automated email from the ASF dual-hosted git repository.
dhavalshah9131 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new a4904abe8 RANGER-5508: fix Runtime.exec parameters (#868)
a4904abe8 is described below
commit a4904abe8acbb70a2265c7602f8d1f961bf4e781
Author: Vyom Mani Tiwari <[email protected]>
AuthorDate: Mon Mar 9 13:05:53 2026 +0530
RANGER-5508: fix Runtime.exec parameters (#868)
---
.../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 50eb39d15..2a4929b83 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
@@ -389,7 +389,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()));