summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2003-10-24 18:58:41 +0000
committerRichard Sharpe <sharpe@samba.org>2003-10-24 18:58:41 +0000
commitb0ead3a03da6af278731881260634ac9246d5e3b (patch)
tree99b08f7413a74be7c9443178663bf73666ef6dd1 /source3/libsmb
parentf3ea6329ba2aa7d5f86c9210ce6209e2d10cbe32 (diff)
downloadsamba-b0ead3a03da6af278731881260634ac9246d5e3b.tar.gz
samba-b0ead3a03da6af278731881260634ac9246d5e3b.tar.bz2
samba-b0ead3a03da6af278731881260634ac9246d5e3b.zip
Apply latest of Derrell Lippman's changes to libsmbclient.
(This used to be commit 84e620e5ba65c040df1c0ebdcf39fa5648dd37d9)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmbclient.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index a11a965fde..735a3cba7c 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -610,15 +610,15 @@ SMBCSRV *smbc_server(SMBCCTX *context,
* connection. This works similarly to smbc_server().
*/
SMBCSRV *smbc_attr_server(SMBCCTX *context,
- const char *server, const char *share,
- fstring workgroup,
- fstring username, fstring password)
+ const char *server, const char *share,
+ fstring workgroup,
+ fstring username, fstring password,
+ POLICY_HND *pol)
{
struct in_addr ip;
struct cli_state *ipc_cli;
NTSTATUS nt_status;
SMBCSRV *ipc_srv=NULL;
- POLICY_HND pol;
/*
* See if we've already created this special connection. Reference
@@ -666,7 +666,7 @@ SMBCSRV *smbc_attr_server(SMBCCTX *context,
ipc_cli->mem_ctx,
True,
GENERIC_EXECUTE_ACCESS,
- &pol);
+ pol);
if (!NT_STATUS_IS_OK(nt_status)) {
errno = smbc_errno(context, ipc_cli);
@@ -3362,7 +3362,8 @@ int smbc_setxattr_ctx(SMBCCTX *context,
}
ipc_srv = smbc_attr_server(context, server, share,
- workgroup, user, password);
+ workgroup, user, password,
+ &pol);
if (!ipc_srv) {
return -1;
}
@@ -3493,7 +3494,8 @@ int smbc_getxattr_ctx(SMBCCTX *context,
}
ipc_srv = smbc_attr_server(context, server, share,
- workgroup, user, password);
+ workgroup, user, password,
+ &pol);
if (!ipc_srv) {
return -1;
}
@@ -3575,13 +3577,15 @@ int smbc_removexattr_ctx(SMBCCTX *context,
}
ipc_srv = smbc_attr_server(context, server, share,
- workgroup, user, password);
+ workgroup, user, password,
+ &pol);
if (!ipc_srv) {
return -1;
}
ipc_srv = smbc_attr_server(context, server, share,
- workgroup, user, password);
+ workgroup, user, password,
+ &pol);
if (!ipc_srv) {
return -1;
}