summaryrefslogtreecommitdiff
path: root/source4/torture/raw/setfileinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/raw/setfileinfo.c')
-rw-r--r--source4/torture/raw/setfileinfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/raw/setfileinfo.c b/source4/torture/raw/setfileinfo.c
index 247e54a4b0..3a49c8baff 100644
--- a/source4/torture/raw/setfileinfo.c
+++ b/source4/torture/raw/setfileinfo.c
@@ -525,6 +525,11 @@ BOOL torture_raw_sfileinfo_bug(int dummy)
NTSTATUS status;
int fnum;
+ if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+ printf("torture_raw_sfileinfo_bug disabled - enable dangerous tests to use\n");
+ return True;
+ }
+
if (!torture_open_connection(&cli)) {
return False;
}