smbd: Only check dev/inode in open_directory, not the full stat()
commit29b44e5bee162443280d06027f2ea2cf7ba280e0
authorAndrew Bartlett <abartlet@samba.org>
Fri, 11 Mar 2016 01:27:53 +0000 (11 14:27 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Mar 2016 19:29:33 +0000 (15 20:29 +0100)
treef97a25b55356555973b80609038ce68fdc8072d2
parenta44025b9a41be56fa7a1ae791d4fd72955164c5f
smbd: Only check dev/inode in open_directory, not the full stat()

This is needed because the smb2.create.mkdir-dup test creates a race,
and against an AD DC this can cause a flapping test if the lstat() and
stat() calls are made either side of the chown() due to creation of a
file by administrator.

Fix based on original patches by myself, by Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>.  and Jeremy Allison <jra@samba.org>

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Mar 12 09:43:21 CET 2016 on sn-devel-144

(cherry picked from commit 5fc6d2dabdf2aeef74fdefaa67eae0348bbf7a44)
source3/smbd/open.c