1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:smbd only initialize kernel oplocks if they are enabled for a share

Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Christian Ambach 2012-03-30 16:00:15 +02:00 committed by Jeremy Allison
parent 1d9a3d488d
commit fbfbc6a252

View File

@ -709,6 +709,10 @@ static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn,
}
}
if (lp_kernel_oplocks(snum)) {
init_kernel_oplocks(conn->sconn);
}
/*
* Fix compatibility issue pointed out by Volker.
* We pass the conn->connectpath to the preexec