summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index cb4ca994f4..b21cdfdab0 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2001,6 +2001,13 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
return ERROR_DOS(ERRDOS,ERRnoaccess);
}
+ /* we have to also set the delete flag in our fsp */
+ if (delete_on_close) {
+ fsp->share_mode |= DELETE_ON_CLOSE_FLAG;
+ } else {
+ fsp->share_mode &= ~DELETE_ON_CLOSE_FLAG;
+ }
+
/*
* Release the lock.
*/