From: Ralph Boehme Date: Tue, 2 Feb 2021 14:54:02 +0000 (+0100) Subject: net: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from openat_pathref_fsp() X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=15e52ebd028187017195933876bc248739535d38;p=kseeger%2Fsamba-autobuild-v4-14-test%2F.git net: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from openat_pathref_fsp() BUG: https://bugzilla.samba.org/show_bug.cgi?id=14730 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison (cherry picked from commit 6e7142ba6c79c9c6f3ce299b6c7dd476cc229e6b) --- diff --git a/source3/utils/net_vfs.c b/source3/utils/net_vfs.c index 62be0a44ca2..73eda3e5cda 100644 --- a/source3/utils/net_vfs.c +++ b/source3/utils/net_vfs.c @@ -243,9 +243,6 @@ static int net_vfs_get_ntacl(struct net_context *net, } status = openat_pathref_fsp(state.conn_tos->conn->cwd_fsp, 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("openat_pathref_fsp [%s] failed: %s\n", smb_fname_str_dbg(smb_fname), nt_errstr(status));