This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.4 by this push:
new 409a872aa RANGER-4043: Fix 'getent group' command when enumerate
groups is enabled (#223)
409a872aa is described below
commit 409a872aacee4fa2482029af07ba0d0e71ca54da
Author: Fateh Singh <[email protected]>
AuthorDate: Thu Mar 2 19:38:40 2023 -0800
RANGER-4043: Fix 'getent group' command when enumerate groups is enabled
(#223)
(cherry picked from commit 5af232597e0b45635d392d9df15c59a09109f600)
---
.../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 d6b54c30a..5525305b7 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
@@ -538,7 +538,7 @@ public class UnixUserGroupBuilder implements
UserGroupSource {
for (String group : groups) {
String command = String.format(groupCmd, group);
- String[] cmd = new String[]{"bash", "-c",
command + " '" + group + "'"};
+ String[] cmd = new String[]{"bash", "-c",
command};
if (LOG.isDebugEnabled()) {
LOG.debug("Executing: " +
Arrays.toString(cmd));
}