mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3:smbd: also close durable file handles in a tdis
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
f0a5b791ae
commit
42afa596d5
@ -151,9 +151,16 @@ void file_close_conn(connection_struct *conn)
|
||||
|
||||
for (fsp=conn->sconn->files; fsp; fsp=next) {
|
||||
next = fsp->next;
|
||||
if (fsp->conn == conn) {
|
||||
close_file(NULL, fsp, SHUTDOWN_CLOSE);
|
||||
if (fsp->conn != conn) {
|
||||
continue;
|
||||
}
|
||||
if (fsp->op != NULL && fsp->op->global->durable) {
|
||||
/*
|
||||
* A tree disconnect closes a durable handle
|
||||
*/
|
||||
fsp->op->global->durable = false;
|
||||
}
|
||||
close_file(NULL, fsp, SHUTDOWN_CLOSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user