mirror of
https://github.com/samba-team/samba.git
synced 2025-03-23 06:50:21 +03:00
s3-smbd: Fix old DOS client doing wildcard delete - gives a attribute type of zero
In the wildcard delete path we forgot to map 0 -> FILE_ATTRIBUTE_NORMAL as we do in the non-wildcard delete path. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11452 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 1d51119f8acaa586e9ec09d14f10b43ed0053df5)
This commit is contained in:
parent
3abfde02f8
commit
5945fee90e
@ -2915,6 +2915,9 @@ NTSTATUS unlink_internals(connection_struct *conn, struct smb_request *req,
|
||||
status = NT_STATUS_OBJECT_NAME_INVALID;
|
||||
goto out;
|
||||
}
|
||||
if (dirtype == 0) {
|
||||
dirtype = FILE_ATTRIBUTE_NORMAL;
|
||||
}
|
||||
|
||||
if (strequal(fname_mask,"????????.???")) {
|
||||
TALLOC_FREE(fname_mask);
|
||||
|
Loading…
x
Reference in New Issue
Block a user