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/smbd/proto.h | |
parent | 6a5afa244203c42265207c56e95783ec740ee89e (diff) | |
download | samba-6c80cf747d75e648a1d88d477bcf476e6874c4b3.tar.gz samba-6c80cf747d75e648a1d88d477bcf476e6874c4b3.tar.xz 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/smbd/proto.h')
-rw-r--r-- | source3/smbd/proto.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 9a9a010671f..888f4afdcb5 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -490,8 +490,15 @@ NTSTATUS create_conn_struct(TALLOC_CTX *ctx, connection_struct **pconn, int snum, const char *path, - const struct auth_session_info *session_info, - char **poldcwd); + const struct auth_session_info *session_info); +NTSTATUS create_conn_struct_cwd(TALLOC_CTX *ctx, + struct tevent_context *ev, + struct messaging_context *msg, + connection_struct **pconn, + int snum, + const char *path, + const struct auth_session_info *session_info, + char **poldcwd); /* The following definitions come from smbd/negprot.c */ |