diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-10-10 13:47:49 +1100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-01-07 16:09:39 -0800 |
commit | 6c80cf747d75e648a1d88d477bcf476e6874c4b3 (patch) | |
tree | ce9aef0f15d9c9588eb0cd4b0a12c347591a8e86 /source3/printing | |
parent | 6a5afa244203c42265207c56e95783ec740ee89e (diff) | |
download | samba-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/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 252fbb8db5..f27003c338 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -616,7 +616,7 @@ static uint32 get_correct_cversion(struct auth_session_info *session_info, return -1; } - nt_status = create_conn_struct(talloc_tos(), + nt_status = create_conn_struct_cwd(talloc_tos(), server_event_context(), server_messaging_context(), &conn, @@ -1003,7 +1003,7 @@ WERROR move_driver_to_download_area(struct auth_session_info *session_info, return WERR_NO_SUCH_SHARE; } - nt_status = create_conn_struct(talloc_tos(), + nt_status = create_conn_struct_cwd(talloc_tos(), server_event_context(), server_messaging_context(), &conn, @@ -1539,7 +1539,7 @@ bool delete_driver_files(const struct auth_session_info *session_info, return false; } - nt_status = create_conn_struct(talloc_tos(), + nt_status = create_conn_struct_cwd(talloc_tos(), server_event_context(), server_messaging_context(), &conn, |