summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-05-25 07:37:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-05-25 07:37:44 +0000
commit20efe2fe6cbc4b5cf861a3296e29f5495637f79c (patch)
tree320ae01d545132da8faeb265e7702254bb4bfb3d /source3/libsmb
parent9921fd9d0ef9a8862b371eec17d47a9e78c5ad67 (diff)
downloadsamba-20efe2fe6cbc4b5cf861a3296e29f5495637f79c.tar.gz
samba-20efe2fe6cbc4b5cf861a3296e29f5495637f79c.tar.bz2
samba-20efe2fe6cbc4b5cf861a3296e29f5495637f79c.zip
Clean up a few unused functions, add a bit of static etc.
Importantly: The removal of the silly 'delete user script' behaviour when secuity=domain. I have left the name the same - as it still does the (previously documented, but not in smb.conf(5)) sane behaviour of deleting users on request. When we decide what to do with the 'add user' functionality, we might rename it. Andrew Bartlett (This used to be commit cdcfe3671eb7570e15649b77f708e6579055e7bc)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c3
-rw-r--r--source3/libsmb/pwd_cache.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 7d18692236..0b6436b508 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1130,8 +1130,9 @@ again:
DEBUG(1,("failed tcon_X\n"));
nt_status = cli_nt_error(cli);
cli_shutdown(cli);
- if (NT_STATUS_IS_OK(nt_status))
+ if (NT_STATUS_IS_OK(nt_status)) {
nt_status = NT_STATUS_UNSUCCESSFUL;
+ }
return nt_status;
}
}
diff --git a/source3/libsmb/pwd_cache.c b/source3/libsmb/pwd_cache.c
index 8b79788fed..fc0602507a 100644
--- a/source3/libsmb/pwd_cache.c
+++ b/source3/libsmb/pwd_cache.c
@@ -73,7 +73,7 @@ void pwd_set_cleartext(struct pwd_info *pwd, char *clr)
Gets a cleartext password.
****************************************************************************/
-void pwd_get_cleartext(struct pwd_info *pwd, char *clr)
+void pwd_get_cleartext(struct pwd_info *pwd, fstring clr)
{
if (pwd->cleartext)
fstrcpy(clr, pwd->password);