smbd: let get_lease_type() take a non-const share_mode_entry
authorRalph Boehme <slow@samba.org>
Thu, 2 Jul 2020 12:45:59 +0000 (14:45 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 Aug 2020 13:32:39 +0000 (13:32 +0000)
commit423f8d7006f1ecb7eb5d579810520692c140fa1e
treed7dd4d4bf2c0741f73d4f5fc52e28ec7febea953
parent52bd010ac2ddbbde7b21066623c136c06f3a4894
smbd: let get_lease_type() take a non-const share_mode_entry

We're going to add a call to share_entry_stale_pid(share_mode_entry) which takes
a non-const pointer (in order to eventually set e->state = true).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14428

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 3f4a865821da27efbed4f7c38ad3efbcaae77a02)
source3/smbd/oplock.c
source3/smbd/proto.h