summaryrefslogtreecommitdiff
path: root/modules/pam_group/pam_group.c
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2007-10-08 15:05:36 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2007-10-08 15:05:36 +0000
commit23ad0f88c676fc0032fff0eb84d17d25b2e3401c (patch)
treeaaf3bb5fdd68fc8a0b4c3729305a3c3b216d0eab /modules/pam_group/pam_group.c
parent97eb58eb40a3a27c94d1e61c6a7bc980a6d3c8e5 (diff)
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- 2007-10-08 Thorsten Kukuk <kukuk@thkukuk.de> * modules/pam_time/pam_time.c (is_same): Length of strings without wildcard needs to be the same. * modules/pam_group/pam_group.c (is_same): Likewise.
Diffstat (limited to 'modules/pam_group/pam_group.c')
-rw-r--r--modules/pam_group/pam_group.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/pam_group/pam_group.c b/modules/pam_group/pam_group.c
index 1dc329ef..4a54da14 100644
--- a/modules/pam_group/pam_group.c
+++ b/modules/pam_group/pam_group.c
@@ -329,6 +329,13 @@ is_same (const pam_handle_t *pamh UNUSED,
return FALSE;
}
}
+
+ /* Ok, we know that b is a substring from A and does not contain
+ wildcards, but now the length of both strings must be the same,
+ too. */
+ if (strlen (a) != strlen(b))
+ return FALSE;
+
return ( !len );
}