aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-11-27 20:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-11-27 20:00:00 +0000
commitfc927d8f1a6d81e5bcf58096871684b35b793fe2 (patch)
tree9343eeaae014d7895dbbc6e15ce9358b37e4f1e9
parente46b77e7739a2c5b8f72a7ea6fb77a7a6acc187d (diff)
downloadpam-fc927d8f1a6d81e5bcf58096871684b35b793fe2.tar.gz
pam-fc927d8f1a6d81e5bcf58096871684b35b793fe2.tar.bz2
pam-fc927d8f1a6d81e5bcf58096871684b35b793fe2.zip
pam_access: fix group name match regression
* modules/pam_access/pam_access.c (group_match): Fix the order of arguments passed to group_name_or_gid_match. Resolves: https://github.com/linux-pam/linux-pam/issues/860
-rw-r--r--modules/pam_access/pam_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_access/pam_access.c b/modules/pam_access/pam_access.c
index 109115e9..15acbf94 100644
--- a/modules/pam_access/pam_access.c
+++ b/modules/pam_access/pam_access.c
@@ -766,7 +766,7 @@ group_match (pam_handle_t *pamh, char *tok, const char* usr, int debug)
tok++;
tok[strlen(tok) - 1] = '\0';
- if (group_name_or_gid_match (pamh, usr, tok, debug))
+ if (group_name_or_gid_match (pamh, tok, usr, debug))
return YES;
return NO;