mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
smbd: trigger NOTIFY_ACTION_DIRLEASE_BREAK when closing a modified file
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
9ed026dd7c
commit
6c923bcd1e
@ -923,6 +923,14 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp,
|
|||||||
fsp->op->global->durable = false;
|
fsp->op->global->durable = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fsp->fsp_flags.modified) {
|
||||||
|
notify_fname(conn,
|
||||||
|
NOTIFY_ACTION_DIRLEASE_BREAK,
|
||||||
|
0,
|
||||||
|
fsp->fsp_name,
|
||||||
|
fsp_get_smb2_lease(fsp));
|
||||||
|
}
|
||||||
|
|
||||||
/* If this is an old DOS or FCB open and we have multiple opens on
|
/* If this is an old DOS or FCB open and we have multiple opens on
|
||||||
the same handle we only have one share mode. Ensure we only remove
|
the same handle we only have one share mode. Ensure we only remove
|
||||||
the share mode on the last close. */
|
the share mode on the last close. */
|
||||||
|
Loading…
Reference in New Issue
Block a user