mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
smbd: Fix create_file_unixpath()'s stream handling
Make create_file_unixpath() robust against callers explicitly passing in ":$DATA" as a stream name indicating the default stream. Right now we NULL this out in callers, but this might change in the future. 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
91ac9ce0d1
commit
af1719a92b
@ -5689,7 +5689,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
|
||||
|
||||
if ((conn->fs_capabilities & FILE_NAMED_STREAMS)
|
||||
&& (access_mask & DELETE_ACCESS)
|
||||
&& !is_ntfs_stream_smb_fname(smb_fname)) {
|
||||
&& !is_named_stream(smb_fname)) {
|
||||
/*
|
||||
* We can't open a file with DELETE access if any of the
|
||||
* streams is open without FILE_SHARE_DELETE
|
||||
|
Reference in New Issue
Block a user