From: Ralph Boehme Date: Mon, 18 May 2020 10:24:30 +0000 (+0200) Subject: smbd: assert (fsp->dirfsp == conn->cwd_fsp) in open_file_ntcreate() X-Git-Tag: ldb-2.2.0~417 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd4d4f812970173897dbf7ce8f9009eff7f04658;p=thirdparty%2Fsamba.git smbd: assert (fsp->dirfsp == conn->cwd_fsp) in open_file_ntcreate() There's a bunch of stuff that needs updating to work with atnames. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 7e2d1b21187..d5b4be42e97 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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.