The Samba-Bugzilla – Attachment 6161 Details for
Bug 7880
rpcclient deldriver does not remove drivers from all architectures.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-s3-rpcclient-Fix-bug-7880-cmd_spoolss_deletedriver-r.patch (text/plain), 1.12 KB, created by
Björn Baumbach
on 2010-12-22 08:56:51 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Björn Baumbach
Created:
2010-12-22 08:56:51 UTC
Size:
1.12 KB
patch
obsolete
>From 7a4831a510de2f36774504cc310066aef0aefadf Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= <bb@sernet.de> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7880
:
6161
|
6200