From: Volker Lendecke Date: Wed, 25 Jul 2018 14:59:53 +0000 (+0200) Subject: smbstatus: Use share_mode_data->leases X-Git-Tag: ldb-1.5.0~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ed119eccf9356ba91c883b50a38adc1bf4deb00;p=thirdparty%2Fsamba.git smbstatus: Use share_mode_data->leases This is the only user of share_mode_entry->lease Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/utils/status.c b/source3/utils/status.c index 9f8729c2910..811eb7b492b 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -180,7 +180,8 @@ static int print_share_mode(struct file_id fid, } else if (e->op_type & LEVEL_II_OPLOCK) { d_printf("LEVEL_II "); } else if (e->op_type == LEASE_OPLOCK) { - uint32_t lstate = e->lease->current_state; + struct share_mode_lease *l = &d->leases[e->lease_idx]; + uint32_t lstate = l->current_state; d_printf("LEASE(%s%s%s)%s%s%s ", (lstate & SMB2_LEASE_READ)?"R":"", (lstate & SMB2_LEASE_WRITE)?"W":"",