summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-02 19:32:54 +0000
committerJeremy Allison <jra@samba.org>2002-02-02 19:32:54 +0000
commit81777993f2f22452dc29e28cec5db51a098b181a (patch)
treef2351d24b9d250c8c60af75ba6872c53f62eb8ec /source/smbd/reply.c
parent2dcc5fafa914ff63988a80df52c3c8e202707a9c (diff)
downloadsamba-81777993f2f22452dc29e28cec5db51a098b181a.tar.gz
samba-81777993f2f22452dc29e28cec5db51a098b181a.tar.xz
samba-81777993f2f22452dc29e28cec5db51a098b181a.zip
Ensure winbindd is built for HPUX11, fix some SGI compiler warnings, fix
the UNIX link path. Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 0d89adf25b6..ae8d4b0ad47 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -603,8 +603,6 @@ static BOOL check_server_security(char *orig_user, char *domain, char *unix_user
smb_ntpasswd, smb_ntpasslen);
if(ret) {
- struct passwd *pwd = NULL;
-
/*
* User validated ok against Domain controller.
* If the admin wants us to try and create a UNIX
@@ -614,7 +612,7 @@ static BOOL check_server_security(char *orig_user, char *domain, char *unix_user
* due to a bad password, or the user really doesn't exist.
*/
- if(lp_adduser_script() && !(pwd = smb_getpwnam(unix_user,True)))
+ if(lp_adduser_script() && !smb_getpwnam(unix_user,True))
smb_create_user(unix_user, NULL);
}