Cope with a (non-security) open race we've had for ever as NTCreateX isn't atomic...
authorJeremy Allison <jra@samba.org>
Tue, 10 Jul 2012 17:15:07 +0000 (10:15 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 10 Jul 2012 19:57:33 +0000 (21:57 +0200)
commit6d903bf1899987adaeaaf6608ac318aca4588590
treef15b7a7807569754e0efa4893fc8934e04e50231
parent69a3e947b60397c9bb9175cf52fe009b6b057350
Cope with a (non-security) open race we've had for ever as NTCreateX isn't atomic on POSIX.

On open without create, the file did exist, but some
other (local or NFS) process either renamed/unlinked
and re-created the file with different dev/ino after
we walked the path, but before we did the open. We
could retry the open but it's a rare enough case it's
easier to just fail the open to prevent creating any
problems in the open file db having the wrong dev/ino
key.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 10 21:57:33 CEST 2012 on sn-devel-104
source3/smbd/open.c