diff options
Diffstat (limited to 'source4/torture/basic/denytest.c')
-rw-r--r-- | source4/torture/basic/denytest.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/torture/basic/denytest.c b/source4/torture/basic/denytest.c index a2ad5e621e..501647eee4 100644 --- a/source4/torture/basic/denytest.c +++ b/source4/torture/basic/denytest.c @@ -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); |