diff options
author | Ralph Boehme <slow@samba.org> | 2018-01-11 17:52:06 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2018-02-03 23:42:16 +0100 |
commit | 84f07a8dcb8ee3a27be96f3baea5313bd0eaa084 (patch) | |
tree | 92a7b980cc278570694af6c4e9a1b69dd00bd72d /source3/param | |
parent | 4c857e08a019174b16155fc9311ad788cdafd4cc (diff) | |
download | samba-84f07a8dcb8ee3a27be96f3baea5313bd0eaa084.tar.gz |
s3/smbd: fix handling of delete-on-close on directories
This implements a check to test the delete-on-close flag of a directory
for requests to create files in this directory.
Windows server implement this check, Samba doesn't as it has performance
implications.
This commit implements the check and a new option to control it. By
default the check is skipped, setting "check parent directory delete on
close = yes" enables it.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Feb 3 23:42:16 CET 2018 on sn-devel-144
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 096c23f4fb3..b1b502c117e 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -244,6 +244,7 @@ static const struct loadparm_service _sDefault = .smb_encrypt = SMB_SIGNING_DEFAULT, .kernel_share_modes = true, .durable_handles = true, + .check_parent_directory_delete_on_close = false, .param_opt = NULL, .dummy = "" }; |