smbd: Split create_conn_struct into a fn that does not change the working dir
commitd534964ea9741cc79f7cd7c2f7e9ed0a3a79d8dc
authorAndrew Bartlett <abartlet@samba.org>
Wed, 10 Oct 2012 02:47:49 +0000 (10 13:47 +1100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Feb 2014 10:21:37 +0000 (21 11:21 +0100)
tree26e2ed9d8a6cfcbc84293a4920d4825f57dbe53f
parent20d7ec8a7b1d39f5a93e58d22720d0a333079254
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>
(cherry picked from commit 6c80cf747d75e648a1d88d477bcf476e6874c4b3)
source3/printing/nt_printing.c
source3/rpc_server/srvsvc/srv_srvsvc_nt.c
source3/smbd/msdfs.c
source3/smbd/proto.h