mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smdb: use fsp_is_alternate_stream() in open_file()
No change in behaviour. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15126 MR: https://gitlab.com/samba-team/samba/-/merge_requests/2643 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
042141efdb
commit
0d3995cec1
@ -1406,7 +1406,7 @@ static NTSTATUS open_file(struct smb_request *req,
|
||||
#endif
|
||||
|
||||
/* Don't create files with Microsoft wildcard characters. */
|
||||
if (fsp->base_fsp) {
|
||||
if (fsp_is_alternate_stream(fsp)) {
|
||||
/*
|
||||
* wildcard characters are allowed in stream names
|
||||
* only test the basefilename
|
||||
@ -1422,7 +1422,7 @@ static NTSTATUS open_file(struct smb_request *req,
|
||||
}
|
||||
|
||||
/* Can we access this file ? */
|
||||
if (!fsp->base_fsp) {
|
||||
if (!fsp_is_alternate_stream(fsp)) {
|
||||
/* Only do this check on non-stream open. */
|
||||
if (file_existed) {
|
||||
status = smbd_check_access_rights_fsp(
|
||||
|
Loading…
Reference in New Issue
Block a user