summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srvsvc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-10 13:47:49 +1100
committerJeremy Allison <jra@samba.org>2013-01-07 16:09:39 -0800
commit6c80cf747d75e648a1d88d477bcf476e6874c4b3 (patch)
treece9aef0f15d9c9588eb0cd4b0a12c347591a8e86 /source3/rpc_server/srvsvc
parent6a5afa244203c42265207c56e95783ec740ee89e (diff)
downloadsamba-6c80cf747d75e648a1d88d477bcf476e6874c4b3.tar.gz
samba-6c80cf747d75e648a1d88d477bcf476e6874c4b3.tar.bz2
samba-6c80cf747d75e648a1d88d477bcf476e6874c4b3.zip
smbd: Split create_conn_struct into a fn that does not change the working dir
The python bindings do not want the current working directory changed during operations, so we provide two functions, one providing the original behaviour, and other providing the python bindings with just the memory allocation and initilisation stuff. Andrew Bartlett Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpc_server/srvsvc')
-rw-r--r--source3/rpc_server/srvsvc/srv_srvsvc_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
index a6472a67ca..e14b7973a1 100644
--- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
@@ -2037,7 +2037,7 @@ WERROR _srvsvc_NetGetFileSecurity(struct pipes_struct *p,
goto error_exit;
}
- nt_status = create_conn_struct(talloc_tos(),
+ nt_status = create_conn_struct_cwd(talloc_tos(),
server_event_context(),
server_messaging_context(),
&conn,
@@ -2184,7 +2184,7 @@ WERROR _srvsvc_NetSetFileSecurity(struct pipes_struct *p,
goto error_exit;
}
- nt_status = create_conn_struct(talloc_tos(),
+ nt_status = create_conn_struct_cwd(talloc_tos(),
server_event_context(),
server_messaging_context(),
&conn,