r23935: We were lying to the client in the case of POSIX_UNLINK
commit14826b0a794fb321cee43df0aadf3a34460dbfcc
authorJeremy Allison <jra@samba.org>
Tue, 17 Jul 2007 18:48:39 +0000 (17 18:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:46 +0000 (10 12:28 -0500)
tree06bcbee71c98d03855c295ea0979b686d0b191b6
parent00b27d2d6933e29d9d89652e4f193562bb204f39
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.
(This used to be commit 24e625a615447c025b73fed2d3db03c1f11ae596)
source3/smbd/trans2.c