mirror of
https://github.com/samba-team/samba.git
synced 2025-09-03 05:49:28 +03:00
smbd: trigger NOTIFY_ACTION_DIRLEASE_BREAK when truncating files
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
@ -4656,11 +4656,12 @@ unlock:
|
|||||||
}
|
}
|
||||||
if (truncated) {
|
if (truncated) {
|
||||||
notify_fname(fsp->conn,
|
notify_fname(fsp->conn,
|
||||||
NOTIFY_ACTION_MODIFIED,
|
NOTIFY_ACTION_MODIFIED |
|
||||||
|
NOTIFY_ACTION_DIRLEASE_BREAK,
|
||||||
FILE_NOTIFY_CHANGE_SIZE |
|
FILE_NOTIFY_CHANGE_SIZE |
|
||||||
FILE_NOTIFY_CHANGE_ATTRIBUTES,
|
FILE_NOTIFY_CHANGE_ATTRIBUTES,
|
||||||
fsp->fsp_name,
|
fsp->fsp_name,
|
||||||
NULL);
|
fsp_get_smb2_lease(fsp));
|
||||||
}
|
}
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
fd_close(fsp);
|
fd_close(fsp);
|
||||||
|
Reference in New Issue
Block a user