From: Ralph Boehme Date: Tue, 2 Feb 2021 14:57:09 +0000 (+0100) Subject: smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from create_file_unixpath() X-Git-Tag: tevent-0.11.0~1814 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=300d851a89248ac9b220fbac55cd5daaebb7fbca;p=thirdparty%2Fsamba.git smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from create_file_unixpath() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 27a08c333e7..92b0a507760 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -5729,11 +5729,6 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, if (ret == 0) { status = openat_pathref_fsp(conn->cwd_fsp, smb_fname_base); - if (NT_STATUS_EQUAL(status, - NT_STATUS_STOPPED_ON_SYMLINK)) - { - status = NT_STATUS_OBJECT_NAME_NOT_FOUND; - } if (!NT_STATUS_IS_OK(status)) { DBG_ERR("open_smb_fname_fsp [%s] failed: %s\n", smb_fname_str_dbg(smb_fname_base),