summaryrefslogtreecommitdiffstats
path: root/source/smbd/close.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-10-23 03:34:50 +0000
committerJeremy Allison <jra@samba.org>1998-10-23 03:34:50 +0000
commit5e6a7cd99d29d1cf068fc517272559c1cf47ea3a (patch)
tree26f9188c69683491516c6bc3ee4a5e7599552c93 /source/smbd/close.c
parenta66c56d70e7e663f3a19cbfcc2e704653d8fc9b2 (diff)
downloadsamba-5e6a7cd99d29d1cf068fc517272559c1cf47ea3a.tar.gz
samba-5e6a7cd99d29d1cf068fc517272559c1cf47ea3a.tar.xz
samba-5e6a7cd99d29d1cf068fc517272559c1cf47ea3a.zip
Reasonably large change to give us *exactly* correct NT delete on close semantics.
This was trickier than it looks :-). Check out the new DELETE_ON_CLOSE flag in the share modes and the new code that iterates through all open files on the same device and inode in files.c and trans2.c Also changed the code that modifies share mode entries to take generic function pointers rather than doing a specific thing so this sort of change should be easier in the future. Jeremy.
Diffstat (limited to 'source/smbd/close.c')
-rw-r--r--source/smbd/close.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/close.c b/source/smbd/close.c
index 2dba691a1c2..50ad01f5755 100644
--- a/source/smbd/close.c
+++ b/source/smbd/close.c
@@ -142,6 +142,7 @@ void close_file(files_struct *fsp, BOOL normal_close)
*/
if (normal_close && last_reference && delete_on_close) {
+ DEBUG(5,("close_file: file %s. Delete on close was set - deleting file.\n"));
if(dos_unlink(fsp->fsp_name) != 0)
DEBUG(0,("close_file: file %s. Delete on close was set and unlink failed \
with error %s\n", fsp->fsp_name, strerror(errno) ));