summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2009-12-08 09:06:46 +0000
committerTomas Mraz <tm@t8m.info>2009-12-08 09:06:46 +0000
commit7f002afe63c0ae06bf011d6cc83fb2c0dcc6f373 (patch)
treebad5fe5d297c1736b1fee0c7430dca817ee56c5a
parente600e04072e7fe89168209b813f953985350159e (diff)
Relevant BUGIDs:
Purpose of commit: cleanup Commit summary: --------------- 2009-12-08 Tomas Mraz <t8m@centrum.cz> * modules/pam_listfile/pam_listfile.c(pam_sm_authenticate): Remove unused function and variable.
-rw-r--r--ChangeLog5
-rw-r--r--modules/pam_listfile/pam_listfile.c12
2 files changed, 5 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index af4a0592..eeed6fb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-08 Tomas Mraz <t8m@centrum.cz>
+
+ * modules/pam_listfile/pam_listfile.c(pam_sm_authenticate): Remove
+ unused function and variable.
+
2009-11-19 Tomas Mraz <t8m@centrum.cz>
* modules/pam_sepermit/pam_sepermit.c(sepermit_match): Return
diff --git a/modules/pam_listfile/pam_listfile.c b/modules/pam_listfile/pam_listfile.c
index f7ed9a40..3768aa72 100644
--- a/modules/pam_listfile/pam_listfile.c
+++ b/modules/pam_listfile/pam_listfile.c
@@ -39,17 +39,6 @@
#include <security/pam_modutil.h>
#include <security/pam_ext.h>
-/* checks if a user is on a list of members */
-static int is_on_list(char * const *list, const char *member)
-{
- while (*list) {
- if (strcmp(*list, member) == 0)
- return 1;
- list++;
- }
- return 0;
-}
-
/* --- authentication management functions (only) --- */
/* Extended Items that are not directly available via pam_get_item() */
@@ -81,7 +70,6 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags UNUSED,
/* Stuff for "extended" items */
struct passwd *userinfo;
- struct group *grpinfo;
apply_type=APPLY_TYPE_NULL;
memset(apply_val,0,sizeof(apply_val));