From: Ralph Boehme Date: Tue, 2 Feb 2021 14:56:16 +0000 (+0100) Subject: smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from synthetic_pathref() X-Git-Tag: tevent-0.11.0~1817 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5479f76e174cf7454da2bad3f903070a8de84043;p=thirdparty%2Fsamba.git smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from synthetic_pathref() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 83ccb332bf4..c4ba08c3772 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -653,9 +653,6 @@ NTSTATUS synthetic_pathref(TALLOC_CTX *mem_ctx, } status = openat_pathref_fsp(dirfsp, smb_fname); - 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("opening [%s] failed\n", smb_fname_str_dbg(smb_fname));