From: Ralph Boehme Date: Tue, 2 Feb 2021 14:56:44 +0000 (+0100) Subject: smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from open_streams_for_del... X-Git-Tag: tevent-0.11.0~1815 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f121374514ed6957b9c6d022a17cc4e5c8aea9a6;p=thirdparty%2Fsamba.git smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from open_streams_for_delete() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index ca870c6a6b1..27a08c333e7 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -4978,9 +4978,6 @@ static NTSTATUS open_streams_for_delete(connection_struct *conn, } status = openat_pathref_fsp(conn->cwd_fsp, smb_fname_cp); - if (NT_STATUS_EQUAL(status, NT_STATUS_STOPPED_ON_SYMLINK)) { - status = NT_STATUS_OBJECT_NAME_NOT_FOUND; - } if (!NT_STATUS_IS_OK(status)) { DBG_DEBUG("Unable to open stream [%s]: %s\n", smb_fname_str_dbg(smb_fname_cp),