smbtorture: verify attributes on fake quota file handle
authorRalph Boehme <slow@samba.org>
Mon, 7 Jun 2021 17:03:05 +0000 (19:03 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 19 Jul 2021 06:17:28 +0000 (08:17 +0200)
commitb1b446a3e4ddc5b34a19ae49e1b483db225b7218
treeda55fb2616d2ca363bc7c6e21af8cd5839312004
parent6012698084c6fef7d7e4836ee6563c709c9c4fe8
smbtorture: verify attributes on fake quota file handle

The expected DOS attributes are taken from a Windows 2016 server. The expected
timestamps are what Samba has returned before commit 572d4e3a56eef00e29f9348:
NTTIME(0), ie no value.

The upcoming fix will restore this behaviour. 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>
(cherry picked from commit 1e338d51602a7dca6108e5e8704f5cdde4740713)
selftest/knownfail
selftest/knownfail.d/samba3.smb2.create [new file with mode: 0644]
source4/torture/smb2/create.c