summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-01-19 21:46:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:19 -0500
commitaacd16e7c4bea5018560eea09d55f2a6473be84d (patch)
treed78e8f338eddd47bb458cbc4f0f7e0b7091dd461 /source3/locking
parentcce97a9b50e6c022cc9eba3d97969c27ae7d106d (diff)
downloadsamba-aacd16e7c4bea5018560eea09d55f2a6473be84d.tar.gz
samba-aacd16e7c4bea5018560eea09d55f2a6473be84d.tar.bz2
samba-aacd16e7c4bea5018560eea09d55f2a6473be84d.zip
r20916: Add in the delete on close final fix - but only enabled
with -DDEVELOPER. Jeremy. (This used to be commit 7f817067a70930ee3502ea3373173e0c23733253)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 56d18a63ef..d2e8b7ef59 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -1281,6 +1281,10 @@ BOOL set_delete_on_close(files_struct *fsp, BOOL delete_on_close, UNIX_USER_TOKE
set_delete_on_close_lck(lck, delete_on_close, tok);
+ if (fsp->is_directory) {
+ send_stat_cache_delete_message(fsp->fsp_name);
+ }
+
TALLOC_FREE(lck);
return True;
}