summaryrefslogtreecommitdiffstats
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-04-11 00:29:48 +0200
committerJeremy Allison <jra@samba.org>2014-04-11 21:41:08 +0200
commit8d45b75df31d5c382345186791a375e2b800066e (patch)
tree36dcdcaacb4d0d25f099e275dc4579174597dbc2 /source3/smbd
parentf71780202a3e736432020cf894b138a06e4bb869 (diff)
downloadsamba-8d45b75df31d5c382345186791a375e2b800066e.tar.gz
samba-8d45b75df31d5c382345186791a375e2b800066e.tar.xz
samba-8d45b75df31d5c382345186791a375e2b800066e.zip
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>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smbXsrv_open.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/smbXsrv_open.c b/source3/smbd/smbXsrv_open.c
index b15be287691..c3ff3bb5b33 100644
--- a/source3/smbd/smbXsrv_open.c
+++ b/source3/smbd/smbXsrv_open.c
@@ -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;