From: Volker Lendecke Date: Fri, 11 Feb 2022 15:59:30 +0000 (+0100) Subject: smbd: Don't NULL out "::$DATA" X-Git-Tag: tevent-0.12.0~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=825dcc6a13dcce5c9eced1baef9a92bd9f6d4d84;p=thirdparty%2Fsamba.git smbd: Don't NULL out "::$DATA" Slight simplification now possible after introducing and using fsp_is_alternate_stream() almost everywhere. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Mar 29 22:24:38 UTC 2022 on sn-devel-184 --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 71c58187286..9e792a23132 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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;