diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-05-27 07:52:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-05-27 07:52:54 +0000 |
commit | 485f37963da26ffc04a7923cf55206caf74875af (patch) | |
tree | 842efc9ddec952357077ea44e62ed44825aea555 /pam_fshadow/pam_fshadow.c | |
parent | becb45487cd4e87db2fae1ec5c3782021975874c (diff) | |
download | pam-modules-485f37963da26ffc04a7923cf55206caf74875af.tar.gz pam-modules-485f37963da26ffc04a7923cf55206caf74875af.tar.bz2 |
Minor fixes.
git-svn-id: file:///svnroot/pam-modules/trunk@11 56984be4-0537-0410-a56c-fcb268c96130
Diffstat (limited to 'pam_fshadow/pam_fshadow.c')
-rw-r--r-- | pam_fshadow/pam_fshadow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pam_fshadow/pam_fshadow.c b/pam_fshadow/pam_fshadow.c index 29cd026..5bdc93d 100644 --- a/pam_fshadow/pam_fshadow.c +++ b/pam_fshadow/pam_fshadow.c @@ -3,6 +3,7 @@ #include <security/_pam_aconf.h> #include <stdlib.h> +#include <stdio.h> #include <unistd.h> #include <string.h> #include <syslog.h> @@ -70,7 +71,7 @@ _pam_parse(int argc, const char **argv) } else if (!strcmp(*argv,"use_authtok")) cntl_flags |= CNTL_AUTHTOK; else if (!strncmp(*argv, "sysconfdir=",11)) - sysconfdir = *argv+11; + sysconfdir = (char*) (*argv+11); else if (!strcmp(*argv, "nopasswd")) cntl_flags |= CNTL_NOPASSWD; else @@ -344,7 +345,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv) { const char *username; - const char *password; + char *password; int retval = PAM_AUTH_ERR; /* parse arguments */ |