]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove NT_STATUS_STOPPED_ON_SYMLINK status code check from create_file_unixpath()
authorRalph Boehme <slow@samba.org>
Tue, 2 Feb 2021 14:57:09 +0000 (15:57 +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/smbd/open.c

index 27a08c333e716e170e62dbaccbdd3acb9d2926c1..92b0a507760ec1d119dfc442d3a9726ead3ab4af 100644 (file)
@@ -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),