1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4-torture: Allow the legacy DENY_FCB/DENY_DOS share modes to be ignored

Signed-off-by: Tim Prouty <tprouty@samba.org>
This commit is contained in:
Zachary Loafman 2009-11-09 18:32:06 +00:00 committed by Tim Prouty
parent 5c857768d1
commit 60d9828ade
2 changed files with 22 additions and 0 deletions

View File

@ -1439,6 +1439,16 @@ bool torture_denytest1(struct torture_context *tctx,
progress_bar(tctx, i, ARRAY_SIZE(denytable1));
if (!torture_setting_bool(tctx, "deny_fcb_support", true) &&
(denytable1[i].deny1 == DENY_FCB ||
denytable1[i].deny2 == DENY_FCB))
continue;
if (!torture_setting_bool(tctx, "deny_dos_support", true) &&
(denytable1[i].deny1 == DENY_DOS ||
denytable1[i].deny2 == DENY_DOS))
continue;
fnum1 = smbcli_open(cli1->tree, fname,
denytable1[i].mode1,
denytable1[i].deny1);
@ -1526,6 +1536,16 @@ bool torture_denytest2(struct torture_context *tctx,
progress_bar(tctx, i, ARRAY_SIZE(denytable1));
if (!torture_setting_bool(tctx, "deny_fcb_support", true) &&
(denytable1[i].deny1 == DENY_FCB ||
denytable1[i].deny2 == DENY_FCB))
continue;
if (!torture_setting_bool(tctx, "deny_dos_support", true) &&
(denytable1[i].deny1 == DENY_DOS ||
denytable1[i].deny2 == DENY_DOS))
continue;
fnum1 = smbcli_open(cli1->tree, fname,
denytable2[i].mode1,
denytable2[i].deny1);

View File

@ -546,6 +546,8 @@ int main(int argc,char *argv[])
"false");
lp_set_cmdline(cmdline_lp_ctx, "torture:2_step_break_to_none",
"true");
lp_set_cmdline(cmdline_lp_ctx, "torture:deny_dos_support", "false");
lp_set_cmdline(cmdline_lp_ctx, "torture:deny_fcb_support", "false");
}
if (max_runtime) {