diff options
author | Jeremy Allison <jra@samba.org> | 2012-07-10 10:15:07 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-07-10 21:57:33 +0200 |
commit | 6d903bf1899987adaeaaf6608ac318aca4588590 (patch) | |
tree | f15b7a7807569754e0efa4893fc8934e04e50231 /source4/libcli/resolve/resolve.c | |
parent | 69a3e947b60397c9bb9175cf52fe009b6b057350 (diff) | |
download | samba-6d903bf1899987adaeaaf6608ac318aca4588590.tar.gz samba-6d903bf1899987adaeaaf6608ac318aca4588590.tar.bz2 samba-6d903bf1899987adaeaaf6608ac318aca4588590.zip |
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
Diffstat (limited to 'source4/libcli/resolve/resolve.c')
0 files changed, 0 insertions, 0 deletions