summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-09-24 05:33:11 +0200
committerVolker Lendecke <vl@samba.org>2011-09-26 14:59:12 +0200
commit425b93ef6920367494ac773592b473802e59a471 (patch)
treec55584023b024e75b96709b7fee27064a5aa2f30 /source3/smbd
parent649437af3db39d4c5fd9807066619ee9d7f05985 (diff)
downloadsamba-425b93ef6920367494ac773592b473802e59a471.tar.gz
samba-425b93ef6920367494ac773592b473802e59a471.tar.bz2
samba-425b93ef6920367494ac773592b473802e59a471.zip
s3: Remove the smbd_server_conn ref from create_conn_struct
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/msdfs.c17
-rw-r--r--source3/smbd/proto.h1
2 files changed, 10 insertions, 8 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index 7d0b78256e..a197f33f11 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -222,6 +222,7 @@ static NTSTATUS parse_dfs_path(connection_struct *conn,
*********************************************************/
NTSTATUS create_conn_struct(TALLOC_CTX *ctx,
+ struct smbd_server_connection *sconn,
connection_struct **pconn,
int snum,
const char *path,
@@ -262,7 +263,7 @@ NTSTATUS create_conn_struct(TALLOC_CTX *ctx,
conn->params->service = snum;
- conn->sconn = smbd_server_conn;
+ conn->sconn = sconn;
conn->sconn->num_tcons_open++;
if (session_info != NULL) {
@@ -970,8 +971,8 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
return NT_STATUS_OK;
}
- status = create_conn_struct(ctx, &conn, snum, lp_pathname(snum),
- NULL, &oldpath);
+ status = create_conn_struct(ctx, smbd_server_conn, &conn, snum,
+ lp_pathname(snum), NULL, &oldpath);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(pdp);
return status;
@@ -1409,8 +1410,8 @@ static bool junction_to_local_path(const struct junction_map *jucn,
if(snum < 0) {
return False;
}
- status = create_conn_struct(talloc_tos(), conn_out, snum,
- lp_pathname(snum), NULL, oldpath);
+ status = create_conn_struct(talloc_tos(), smbd_server_conn, conn_out,
+ snum, lp_pathname(snum), NULL, oldpath);
if (!NT_STATUS_IS_OK(status)) {
return False;
}
@@ -1571,8 +1572,8 @@ static int count_dfs_links(TALLOC_CTX *ctx, int snum)
* Fake up a connection struct for the VFS layer.
*/
- status = create_conn_struct(talloc_tos(), &conn, snum, connect_path,
- NULL, &cwd);
+ status = create_conn_struct(talloc_tos(), smbd_server_conn, &conn,
+ snum, connect_path, NULL, &cwd);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("create_conn_struct failed: %s\n",
nt_errstr(status)));
@@ -1644,7 +1645,7 @@ static int form_junctions(TALLOC_CTX *ctx,
* Fake up a connection struct for the VFS layer.
*/
- status = create_conn_struct(ctx, &conn, snum, connect_path, NULL,
+ status = create_conn_struct(ctx, smbd_server_conn, &conn, snum, connect_path, NULL,
&cwd);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("create_conn_struct failed: %s\n",
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 3d0665deaf..ab7d0a8013 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -475,6 +475,7 @@ NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx,
char **pp_name_out,
bool *ppath_contains_wcard);
NTSTATUS create_conn_struct(TALLOC_CTX *ctx,
+ struct smbd_server_connection *sconn,
connection_struct **pconn,
int snum,
const char *path,