From 7a4831a510de2f36774504cc310066aef0aefadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= Date: Wed, 22 Dec 2010 15:20:29 +0100 Subject: [PATCH] s3-rpcclient: Fix bug #7880: cmd_spoolss_deletedriver() returned without checking all architectures. Continues now with next architecture if no driver is available. --- source3/rpcclient/cmd_spoolss.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 1bb3a71..018b2ce 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -1952,7 +1952,13 @@ static WERROR cmd_spoolss_deletedriver(struct rpc_pipe_client *cli, argv[1], &result); if (!NT_STATUS_IS_OK(status)) { - return result; + /* continue with next architecture if no driver is available */ + if( W_ERROR_EQUAL(ntstatus_to_werror(status), WERR_UNKNOWN_PRINTER_DRIVER) ) { + continue; + } + else { + return result; + } } if ( !W_ERROR_IS_OK(result) ) { if ( !W_ERROR_EQUAL(result, WERR_UNKNOWN_PRINTER_DRIVER) ) { -- 1.7.2.2