]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorTomas Mraz <tm@t8m.info>
Tue, 8 Dec 2009 09:06:46 +0000 (09:06 +0000)
committerTomas Mraz <tm@t8m.info>
Tue, 8 Dec 2009 09:06:46 +0000 (09:06 +0000)
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.

ChangeLog
modules/pam_listfile/pam_listfile.c

index af4a0592ac6e2141082e317d7c026fa854c95506..eeed6fb052a3e93859957963571feddd413825bc 100644 (file)
--- 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
index f7ed9a40bffba6065e2e3f529a3085908d2d7581..3768aa720eb87403920b894893cdb640a636c96a 100644 (file)
 #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));