1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:smbXsrv_open: allow now==0 to skip the idle_time update.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2014-04-11 00:29:48 +02:00 committed by Jeremy Allison
parent f71780202a
commit 8d45b75df3

View File

@ -444,7 +444,9 @@ static NTSTATUS smbXsrv_open_local_lookup(struct smbXsrv_open_table *table,
return NT_STATUS_FILE_CLOSED;
}
state.op->idle_time = now;
if (now != 0) {
state.op->idle_time = now;
}
*_open = state.op;
return state.op->status;