mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
SMB2 renames return SHARING_VIOLATION if there is any existing oplock on a file.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Mar 18 23:39:49 CET 2011 on sn-devel-104
This commit is contained in:
parent
4b347a1b17
commit
89b6af0982
@ -216,6 +216,12 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
|
|||||||
if (file_info_level == SMB_FILE_RENAME_INFORMATION) {
|
if (file_info_level == SMB_FILE_RENAME_INFORMATION) {
|
||||||
/* SMB2_FILE_RENAME_INFORMATION_INTERNAL == 0xFF00 + in_file_info_class */
|
/* SMB2_FILE_RENAME_INFORMATION_INTERNAL == 0xFF00 + in_file_info_class */
|
||||||
file_info_level = SMB2_FILE_RENAME_INFORMATION_INTERNAL;
|
file_info_level = SMB2_FILE_RENAME_INFORMATION_INTERNAL;
|
||||||
|
if (fsp->oplock_type != FAKE_LEVEL_II_OPLOCK &&
|
||||||
|
fsp->oplock_type != NO_OPLOCK) {
|
||||||
|
/* No break, but error. */
|
||||||
|
tevent_req_nterror(req, NT_STATUS_SHARING_VIOLATION);
|
||||||
|
return tevent_req_post(req, ev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fsp->fh->fd == -1) {
|
if (fsp->fh->fd == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user