]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: assert (fsp->dirfsp == conn->cwd_fsp) in open_file_ntcreate()
authorRalph Boehme <slow@samba.org>
Mon, 18 May 2020 10:24:30 +0000 (12:24 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 21 May 2020 05:23:32 +0000 (05:23 +0000)
There's a bunch of stuff that needs updating to work with atnames.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 7e2d1b211879c9393cd7ccd9d5632272d3c135e0..d5b4be42e97dcb4d589dee778b1310f7861eaf26 100644 (file)
@@ -3332,6 +3332,8 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
        bool setup_poll = false;
        bool ok;
 
+       SMB_ASSERT(fsp->dirfsp == conn->cwd_fsp);
+
        if (conn->printer) {
                /*
                 * Printers are handled completely differently.