Am Friday 16 January 2009 16:45:02 schrieb Elpidio Silva:
> But, with libpam-mount 0.44-1+lenny3 and 0.44-1+lenny2, the SGRP tag
> match with anyone group.
Attached is the patch that fixed this bug in pam_mount >= 1.1.

Regards,
  Bastian
diff --git a/src/rdconf1.c b/src/rdconf1.c
index 4d1fff1..3135bc4 100644
--- a/src/rdconf1.c
+++ b/src/rdconf1.c
@@ -548,7 +548,7 @@ static bool user_in_sgrp(const char *user, const char *grp, bool icase)
 
 	wp = const_cast(const char **, gent->gr_mem);
 	while (wp != NULL && *wp != NULL) {
-		if (strcmp(*wp, user) ||
+		if (strcmp(*wp, user) == 0 ||
 		    (icase && strcasecmp(*wp, user)) == 0)
 			return true;
 		++wp;

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to