From 1ea0466289d782a52192a15c519237f7fdbe7a55 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 22 May 2008 22:46:43 +1000 Subject: added a --noeas option to gentest_smb2 (This used to be commit 9d523debb7ee59bdadf9865e023be370b7ab7b39) --- source4/torture/gentest_smb2.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/torture/gentest_smb2.c') diff --git a/source4/torture/gentest_smb2.c b/source4/torture/gentest_smb2.c index ef1ce9aadd..6546ba6768 100644 --- a/source4/torture/gentest_smb2.c +++ b/source4/torture/gentest_smb2.c @@ -54,6 +54,7 @@ static struct gentest_options { int use_preset_seeds; int fast_reconnect; int mask_indexing; + int no_eas; } options; /* mapping between open handles on the server and local handles */ @@ -691,6 +692,10 @@ static struct smb_ea_list gen_ea_list(void) { struct smb_ea_list eas; int i; + if (options.no_eas) { + ZERO_STRUCT(eas); + return eas; + } eas.num_eas = gen_int_range(0, 3); eas.eas = talloc_array(current_op.mem_ctx, struct ea_struct, eas.num_eas); for (i=0;i