The Samba-Bugzilla – Attachment 5680 Details for
Bug 7277
Some Trouble with printing under Samba 3.5.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 3.4
patch-v3-4-test (text/plain), 2.20 KB, created by
Guenther Deschner
on 2010-05-03 09:36:20 UTC
(
hide
)
Description:
patch for 3.4
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2010-05-03 09:36:20 UTC
Size:
2.20 KB
patch
obsolete
>From 754ca1ae9b5f0864e1d56442507227d723dd91f8 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Mon, 3 May 2010 15:54:14 +0200 >Subject: [PATCH] s3-rpcclient: Fix Bug #7277. rpcclient was sending invalid data, causing cupsaddsmb to fail. > >Guenther >(cherry picked from commit 9cc10e6a5742f09261f01a2c0b3a94b7b772e573) >--- > source3/rpcclient/cmd_spoolss.c | 27 +++++++++++++++++++++++---- > 1 files changed, 23 insertions(+), 4 deletions(-) > >diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c >index 3d078d7..181f0b5 100644 >--- a/source3/rpcclient/cmd_spoolss.c >+++ b/source3/rpcclient/cmd_spoolss.c >@@ -1743,6 +1743,7 @@ static WERROR cmd_spoolss_setdriver(struct rpc_pipe_client *cli, > const char *printername; > union spoolss_PrinterInfo info; > struct spoolss_SetPrinterInfoCtr info_ctr; >+ struct spoolss_SetPrinterInfo2 info2; > struct spoolss_DevmodeContainer devmode_ctr; > struct sec_desc_buf secdesc_ctr; > >@@ -1781,12 +1782,30 @@ static WERROR cmd_spoolss_setdriver(struct rpc_pipe_client *cli, > > /* Set the printer driver */ > >- info.info2.drivername = argv[2]; >- info.info2.devmode = NULL; >- info.info2.secdesc = NULL; >+ info2.servername = info.info2.servername; >+ info2.printername = info.info2.printername; >+ info2.sharename = info.info2.sharename; >+ info2.portname = info.info2.portname; >+ info2.drivername = argv[2]; >+ info2.comment = info.info2.comment; >+ info2.location = info.info2.location; >+ info2.devmode_ptr = 0; >+ info2.sepfile = info.info2.sepfile; >+ info2.printprocessor = info.info2.printprocessor; >+ info2.datatype = info.info2.datatype; >+ info2.parameters = info.info2.parameters; >+ info2.secdesc_ptr = 0; >+ info2.attributes = info.info2.attributes; >+ info2.priority = info.info2.priority; >+ info2.defaultpriority = info.info2.defaultpriority; >+ info2.starttime = info.info2.starttime; >+ info2.untiltime = info.info2.untiltime; >+ info2.status = info.info2.status; >+ info2.cjobs = info.info2.cjobs; >+ info2.averageppm = info.info2.averageppm; > > info_ctr.level = 2; >- info_ctr.info.info2 = (struct spoolss_SetPrinterInfo2 *)&info.info2; >+ info_ctr.info.info2 = &info2; > > status = rpccli_spoolss_SetPrinter(cli, mem_ctx, > &pol, >-- >1.6.6.1 >
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
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 7277
:
5679
| 5680 |
5681