smbd - allow updates on directory write times on open handles.
commitdf348b8d6b571f3f72ccd6ef3248eb63fd9b02b9
authorJeremy Allison <jra@samba.org>
Wed, 4 Dec 2013 01:22:19 +0000 (3 17:22 -0800)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Dec 2013 17:20:48 +0000 (10 18:20 +0100)
tree9604b50e226532276874bc9d25a8f5f9eb1fe453
parent717edc25b21ed03acf07b704aae9d6c2a81bc73e
smbd - allow updates on directory write times on open handles.

If we set a non-null 'old timestamp' in the share mode database
when creating a directory handle, this prevents mtime (write time)
updates from being seen by clients, as we will always return the
timestamp stored in the database whilst the handle is open.

For files this is ok, as we update the stored timestamp
ourselves when we write to the handle. For directories
we should just rely on the mtime value from the underlying
filesystem.

Torture test to follow.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=9870

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/open.c