From 4ca2cc348e3412fd1851cd8512a10d0d0b1acf99 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 17 Mar 2010 15:55:23 +0100 Subject: s4-smbtorture: workaround broken REG_MULTI_SZ from winreg in s3 during SetPrinterDataEx SPOOLSS test. Guenther --- source4/torture/rpc/spoolss.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index fef95bd2b0..db7d5ab566 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -3719,6 +3719,13 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx, s = 0xffff; } + if (torture_setting_bool(tctx, "samba3", false)) { + if ((types[t] == REG_MULTI_SZ) && s == 0) { + torture_warning(tctx, "samba3 does not handle 4 byte emtpy REG_MULTI_SZ buffers"); + continue; + } + } + switch (types[t]) { case REG_BINARY: data = blob; -- cgit