summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
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/smbd/filename.c
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/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index b69d2f3e5e..eb86a0efd1 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -462,6 +462,12 @@ NTSTATUS unix_convert(connection_struct *conn,
}
} /* end else */
+#ifdef DEVELOPER
+ if (VALID_STAT(st) && get_delete_on_close_flag(st.st_dev, st.st_ino)) {
+ return NT_STATUS_DELETE_PENDING;
+ }
+#endif
+
/*
* Add to the dirpath that we have resolved so far.
*/