smbd: return correct timestamps for quota fake file
authorRalph Boehme <slow@samba.org>
Mon, 7 Jun 2021 17:02:56 +0000 (19:02 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 9 Jun 2021 20:38:02 +0000 (20:38 +0000)
commit52a421111218d94d2e5cb131648bcdf5411d910b
tree5195ff1afffc29989ced2735968d38c1c4a5a65f
parente093eaed1046638193d973c39fa9df74e41148d3
smbd: return correct timestamps for quota fake file

Prior to 572d4e3a56eef00e29f93482daa21647af7310d0 it was sufficient to
initialize struct timespec to zero to return NTTIME 0 (ie not set) over
SMB.

This fixes the same problem from bug 14714 where the timestamps in an SMB2 CLOSE
response.

Windows of course does return *some* timestamps, but as it's neither documented
nor was I able to figure out where they would be coming from, as well as the
Windows client apparently doesn't care, I didn't bother with implementing some
sophisticated heuristic to return some timestamps.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jun  9 20:38:02 UTC 2021 on sn-devel-184
selftest/knownfail.d/samba3.smb2.create [deleted file]
source3/smbd/filename.c