r23935: We were lying to the client in the case of POSIX_UNLINK
authorJeremy Allison <jra@samba.org>
Tue, 17 Jul 2007 18:48:39 +0000 (18:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:46 +0000 (12:28 -0500)
commit24e625a615447c025b73fed2d3db03c1f11ae596
treeef67bbffa0aa6c16ec430e22784b4b0ff4db0910
parent8c64ca3394489b28034310fe64d6998e49827196
r23935: We were lying to the client in the case of POSIX_UNLINK
if a Windows client had the file open. We were setting
delete on close and returning "ok". The POSIX client then
believed the file was gone (and it wasn't). Fix this to
return SHARING_VIOLATION if there is an existing NTcreateX
open on the file and someone calls POSIX_UNLINK. Still one
more Cthon test to fix but getting closer now. Should
be in 3.0.25c also.
Jeremy.
source/smbd/trans2.c