smbd: some write time fixes
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Sep 2008 13:12:24 +0000 (15:12 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Sep 2008 10:17:16 +0000 (12:17 +0200)
commit51bab3661f401f61d6de9ae34aa6180adf80ecb3
treee36c22728579ec13a3fa50448538fb443e8b17ca
parentba358940ad4e37b942e6e1a0c838a01bd6a7b0c0
smbd: some write time fixes

- only the first non truncating write causes
  the write time update with 2 seconds delay.
  It's not enough to check for an existing update event
  as it will be NULL after the event was triggered.

- SMBwrite truncates always update the write time
  unless the sticky write time is set.

- SMBwrite truncates don't trigger a write time update on close.

metze
(cherry picked from commit be8ac33179f56296118435e2732ccffdf7ddd305)
source/include/smb.h
source/smbd/fileio.c