From 38da6ae394a4b2f18e210369562928dc0e404f54 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 20 Dec 2000 05:15:05 +0000 Subject: Relevant BUGIDs: 126431, 126423 Purpose of commit: new feature / bugfix Commit summary: --------------- This changes the format of pam_unix log messages, per bug 126423. The change is extensive (every call to _log_err() now has an additional argument) but straightforward. These changes to the logging code incidentally fix the problem reported in bug 126431. --- modules/pam_unix/support.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/pam_unix/support.h') diff --git a/modules/pam_unix/support.h b/modules/pam_unix/support.h index 419f5273..0b6b6e04 100644 --- a/modules/pam_unix/support.h +++ b/modules/pam_unix/support.h @@ -124,10 +124,11 @@ static const UNIX_Ctrls unix_args[UNIX_CTRLS_] = } extern char *PAM_getlogin(void); -extern void _log_err(int err, const char *format,...); +extern void _log_err(int err, pam_handle_t *pamh, const char *format,...); extern int _make_remark(pam_handle_t * pamh, unsigned int ctrl ,int type, const char *text); -extern int _set_ctrl(int flags, int *remember, int argc, const char **argv); +extern int _set_ctrl(pam_handle_t * pamh, int flags, int *remember, int argc, + const char **argv); extern int _unix_blankpasswd(unsigned int ctrl, const char *name); extern int _unix_verify_password(pam_handle_t * pamh, const char *name ,const char *p, unsigned int ctrl); -- cgit v1.2.3