]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Don't NULL out "::$DATA"
authorVolker Lendecke <vl@samba.org>
Fri, 11 Feb 2022 15:59:30 +0000 (16:59 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 29 Mar 2022 22:24:38 +0000 (22:24 +0000)
Slight simplification now possible after introducing and using
fsp_is_alternate_stream() almost everywhere.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Mar 29 22:24:38 UTC 2022 on sn-devel-184

source3/smbd/open.c

index 71c58187286428af2b8ebf2b855cff32762ce8b3..9e792a23132fd14ec68087fdc44409b6508b8ba3 100644 (file)
@@ -6256,7 +6256,6 @@ NTSTATUS create_file_default(connection_struct *conn,
 
        if (is_ntfs_default_stream_smb_fname(smb_fname)) {
                int ret;
-               smb_fname->stream_name = NULL;
                /* We have to handle this error here. */
                if (create_options & FILE_DIRECTORY_FILE) {
                        status = NT_STATUS_NOT_A_DIRECTORY;