smbd: some write time fixes
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Sep 2008 13:12:24 +0000 (15:12 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 12 Sep 2008 13:16:48 +0000 (15:16 +0200)
commitdd4f01c26419c4fea395dc0fca63fc41db132f5b
treef780e1c15e6468d5aba490b97447abfb9a7c0ffe
parente583f1260b0a87afbeea368d7b773de56b6b157e
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 142a9703ae19a467a23ee72429f899dae156df64)
source/include/smb.h
source/smbd/fileio.c