s3:smbXsrv_open: allow now==0 to skip the idle_time update.
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Apr 2014 22:29:48 +0000 (00:29 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 11 Apr 2014 19:41:08 +0000 (21:41 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smbXsrv_open.c

index b15be287691b49bab76df436278554e826f8eb90..c3ff3bb5b333c525cf9280047d7bf9649a711a16 100644 (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;