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 /lib/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 'lib/param')
-rw-r--r-- | lib/param/loadparm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 7854f57a158..efad4a10f03 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -2998,6 +2998,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lpcfg_do_global_parameter(lp_ctx, "prefork children", "1"); + lpcfg_do_global_parameter(lp_ctx, "check parent directory delete on close", "no"); + for (i = 0; parm_table[i].label; i++) { if (!(lp_ctx->flags[i] & FLAG_CMDLINE)) { lp_ctx->flags[i] |= FLAG_DEFAULT; |