From 8f64190223a4259bcf0cb95033e5d930b2d9286b Mon Sep 17 00:00:00 2001 From: nekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7> Date: Sat, 9 May 2009 13:15:38 +0000 Subject: [PATCH] Fix typos. --- lib/prototypes.h | 4 +++- libmisc/pam_pass_non_interractive.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/prototypes.h b/lib/prototypes.h index f2c7ebbb..ccbf1bce 100644 --- a/lib/prototypes.h +++ b/lib/prototypes.h @@ -239,9 +239,11 @@ extern void motd (void); extern /*@null@*/struct passwd *get_my_pwent (void); /* pam_pass_non_interractive.c */ +#ifdef USE_PAM extern int do_pam_passwd_non_interractive (const char *pam_service, const char *username, - const char* password) + const char* password); +#endif /* USE_PAM */ /* obscure.c */ #ifndef USE_PAM diff --git a/libmisc/pam_pass_non_interractive.c b/libmisc/pam_pass_non_interractive.c index 7c597249..8bdb3426 100644 --- a/libmisc/pam_pass_non_interractive.c +++ b/libmisc/pam_pass_non_interractive.c @@ -159,6 +159,8 @@ int do_pam_passwd_non_interractive (const char *pam_service, } (void) pam_end (pamh, PAM_SUCCESS); + + return ((PAM_SUCCESS == ret) ? 0 : 1); } #else /* !USE_PAM */ extern int errno; /* warning: ANSI C forbids an empty source file */ -- 2.40.0