]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
net: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from openat_pathref_fsp()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 14:54:02 +0000 (15:54 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 5 Feb 2021 06:22:35 +0000 (06:22 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/net_vfs.c

index 62be0a44ca28d2c2bf15ddd4241001f21bf9e214..73eda3e5cdac2eec5a96d8392bbb436b0f8afe1e 100644 (file)
@@ -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));