mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
680da2b3af
commit
9ed026dd7c
@ -4656,11 +4656,12 @@ unlock:
|
||||
}
|
||||
if (truncated) {
|
||||
notify_fname(fsp->conn,
|
||||
NOTIFY_ACTION_MODIFIED,
|
||||
NOTIFY_ACTION_MODIFIED |
|
||||
NOTIFY_ACTION_DIRLEASE_BREAK,
|
||||
FILE_NOTIFY_CHANGE_SIZE |
|
||||
FILE_NOTIFY_CHANGE_ATTRIBUTES,
|
||||
fsp->fsp_name,
|
||||
NULL);
|
||||
fsp_get_smb2_lease(fsp));
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
fd_close(fsp);
|
||||
|
Loading…
Reference in New Issue
Block a user