diff options
author | Ralph Boehme <slow@samba.org> | 2020-05-18 12:24:30 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2020-05-21 05:23:32 +0000 |
commit | dd4d4f812970173897dbf7ce8f9009eff7f04658 (patch) | |
tree | 9e0fb4ab93fb0169c9f06820bb1809ff163a0f85 /source3/smbd/open.c | |
parent | 4ae6e5f0548139cb824d49bc570f7d49b8d1bdb2 (diff) | |
download | samba-dd4d4f812970173897dbf7ce8f9009eff7f04658.tar.gz |
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r-- | source3/smbd/open.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. |