summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-04-13 04:09:39 +0000
committerAndrew Tridgell <tridge@samba.org>2001-04-13 04:09:39 +0000
commitc642cf5bcc66022c6e426454ae881496375c2ccb (patch)
tree56b49cedbbdb2f6cdf145d6a0c19ecd0c9e0719b /source/smbd/reply.c
parente13511271193003765e7a28a621b73eda9bf5198 (diff)
downloadsamba-c642cf5bcc66022c6e426454ae881496375c2ccb.tar.gz
samba-c642cf5bcc66022c6e426454ae881496375c2ccb.tar.xz
samba-c642cf5bcc66022c6e426454ae881496375c2ccb.zip
- remove template from smbrun(). Now uses /tmp and mkstemp
- fixed some uninitialised variable warnings - removed smbrun utility (never used) - removed some incorrect varargs usage - removed smbrun smb.conf option
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index bcfef60798b..9d91cb9d686 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -507,7 +507,7 @@ int smb_create_user(char *unix_user, char *homedir)
all_string_sub(add_script, "%u", unix_user, sizeof(pstring));
if (homedir)
all_string_sub(add_script, "%H", homedir, sizeof(pstring));
- ret = smbrun(add_script,NULL,NULL);
+ ret = smbrun(add_script,NULL);
DEBUG(3,("smb_create_user: Running the command `%s' gave %d\n",add_script,ret));
return ret;
}
@@ -524,7 +524,7 @@ static int smb_delete_user(char *unix_user)
pstrcpy(del_script, lp_deluser_script());
if (! *del_script) return -1;
all_string_sub(del_script, "%u", unix_user, sizeof(pstring));
- ret = smbrun(del_script,NULL,NULL);
+ ret = smbrun(del_script,NULL);
DEBUG(3,("smb_delete_user: Running the command `%s' gave %d\n",del_script,ret));
return ret;
}
@@ -570,7 +570,7 @@ static BOOL check_server_security(char *orig_user, char *domain, char *unix_user
smb_apasswd, smb_apasslen,
smb_ntpasswd, smb_ntpasslen);
if(ret) {
- struct passwd *pwd;
+ struct passwd *pwd = NULL;
/*
* User validated ok against Domain controller.
@@ -611,7 +611,7 @@ static BOOL check_domain_security(char *orig_user, char *domain, char *unix_user
{
BOOL ret = False;
BOOL user_exists = True;
- struct passwd *pwd;
+ struct passwd *pwd = NULL;
if(lp_security() != SEC_DOMAIN)
return False;