[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1075-g81253ec

Günther Deschner gd at samba.org
Fri Apr 17 15:24:31 GMT 2009


The branch, master has been updated
       via  81253ec14623ed480905433e5bf5df7982cfbfa4 (commit)
      from  d43a49d4497f882c8f4203a4b96b88a83ad85acb (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 81253ec14623ed480905433e5bf5df7982cfbfa4
Author: Günther Deschner <gd at samba.org>
Date:   Fri Apr 17 17:14:20 2009 +0200

    s4-smbtorture: Fix RPC-SPOOLSS-WIN for printers with a lot of jobs in the queue.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/rpc/spoolss_win.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/rpc/spoolss_win.c b/source4/torture/rpc/spoolss_win.c
index 42b6929..719d8e2 100644
--- a/source4/torture/rpc/spoolss_win.c
+++ b/source4/torture/rpc/spoolss_win.c
@@ -290,6 +290,13 @@ static bool test_EnumJobs(struct torture_context *tctx,
 
 	status = dcerpc_spoolss_EnumJobs(p, tctx, &ej);
 	torture_assert_ntstatus_ok(tctx, status, "EnumJobs failed");
+	if (W_ERROR_EQUAL(ej.out.result, WERR_INSUFFICIENT_BUFFER)) {
+		blob = data_blob_talloc_zero(tctx, needed);
+		ej.in.offered = needed;
+		ej.in.buffer = &blob;
+		status = dcerpc_spoolss_EnumJobs(p, tctx, &ej);
+		torture_assert_ntstatus_ok(tctx, status, "EnumJobs failed");
+	}
 	torture_assert_werr_ok(tctx, ej.out.result, "EnumJobs failed");
 
 	return true;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list