mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
smbd: Don't NULL out the "::$DATA" in openat_pathref_fsp()
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>
This commit is contained in:
committed by
Jeremy Allison
parent
50bac24665
commit
e41f8001f1
@ -469,10 +469,6 @@ NTSTATUS openat_pathref_fsp(const struct files_struct *dirfsp,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ntfs_default_stream_smb_fname(full_fname)) {
|
|
||||||
full_fname->stream_name = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
status = fsp_attach_smb_fname(fsp, &full_fname);
|
status = fsp_attach_smb_fname(fsp, &full_fname);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Reference in New Issue
Block a user