summaryrefslogtreecommitdiffstats
path: root/lib/param/param_table.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-10-24 13:57:04 -0700
committerJeremy Allison <jra@samba.org>2014-10-31 03:47:40 +0100
commitb0a434386dc2f77df89811bc3f56c4cc7fb7b16c (patch)
treec41dbe10d017e23288fc3bebe1f71dd0065d0adb /lib/param/param_table.c
parent9010bbeb00264f4476c3be7d2e8c8420c695cfbb (diff)
downloadsamba-b0a434386dc2f77df89811bc3f56c4cc7fb7b16c.tar.gz
samba-b0a434386dc2f77df89811bc3f56c4cc7fb7b16c.tar.xz
samba-b0a434386dc2f77df89811bc3f56c4cc7fb7b16c.zip
s3:param: Add new option "strict rename".
Control whether smbd can rename directories containing open files. Defaults to "no" (meaning we *can* do such renames). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/param/param_table.c')
-rw-r--r--lib/param/param_table.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/param/param_table.c b/lib/param/param_table.c
index 15ffa8c3f6..7a13e6f84a 100644
--- a/lib/param/param_table.c
+++ b/lib/param/param_table.c
@@ -1884,6 +1884,15 @@ struct parm_struct parm_table[] = {
.flags = FLAG_ADVANCED | FLAG_SHARE,
},
{
+ .label = "strict rename",
+ .type = P_BOOL,
+ .p_class = P_LOCAL,
+ .offset = LOCAL_VAR(strict_rename),
+ .special = NULL,
+ .enum_list = NULL,
+ .flags = FLAG_ADVANCED | FLAG_SHARE,
+ },
+ {
.label = "strict sync",
.type = P_BOOL,
.p_class = P_LOCAL,