smbd: remember that the tcon completely setup connection_struct
authorStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 05:27:43 +0000 (07:27 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:16 +0000 (08:59 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/vfs.h
source3/smbd/msdfs.c
source3/smbd/service.c

index 81fb6c1f14537d032fd9e52e17dbb5809c7996d9..54ab1604b799fc0bb00d6f540ecf0b7adb4aa84f 100644 (file)
@@ -436,6 +436,7 @@ typedef struct connection_struct {
        char *connectpath;
        char *origpath;
        struct smb_filename *cwd_fname; /* Working directory. */
+       bool tcon_done;
 
        struct vfs_handle_struct *vfs_handles;          /* for the new plugins */
 
index 1a6454b5c2be020844d1e2b9cf25034f738ac9c2..a143e6d23cacfe04579c321c6192b3530fdc36f8 100644 (file)
@@ -358,6 +358,7 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx,
        }
 
        conn->fs_capabilities = SMB_VFS_FS_CAPABILITIES(conn, &conn->ts_res);
+       conn->tcon_done = true;
        *pconn = talloc_move(ctx, &conn);
 
        return NT_STATUS_OK;
index d0932c0e9717b8e9b607ff51817b261d528aec79..612c88357ef7775aba66df95ef596343b6da088a 100644 (file)
@@ -879,6 +879,7 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn,
                dbgtext( "(pid %d)\n", (int)getpid() );
        }
 
+       conn->tcon_done = true;
        return NT_STATUS_OK;
 
   err_root_exit: