From 5b8d230e39cedda6117cf8528065cbab45bdd835 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 8 Jul 2001 14:10:30 +0000 Subject: This removes unused paramaters from various authtication functions, and should not change behaviour. This should make my later diffs smaller, where I actualy start cleaning up this mess... Andrew Bartlett (This used to be commit 04f090c224bb7ac3b53c430a591fce1fc939a81c) --- source3/auth/pass_check.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c index 9424189b23..677d298449 100644 --- a/source3/auth/pass_check.c +++ b/source3/auth/pass_check.c @@ -682,7 +682,7 @@ match is found and is used to update the encrypted password file return True on correct match, False otherwise ****************************************************************************/ -BOOL pass_check(char *user, char *password, int pwlen, struct passwd *pwd, +BOOL pass_check(char *user, char *password, int pwlen, BOOL (*fn) (char *, char *)) { pstring pass2; @@ -702,12 +702,7 @@ BOOL pass_check(char *user, char *password, int pwlen, struct passwd *pwd, if (((!*password) || (!pwlen)) && !lp_null_passwords()) return (False); - if (pwd && !user) { - pass = (struct passwd *)pwd; - user = pass->pw_name; - } else { - pass = Get_Pwnam(user, True); - } + pass = Get_Pwnam(user, True); #ifdef WITH_PAM -- cgit