The Samba-Bugzilla – Attachment 5537 Details for
Bug 7269
Job management commands don't work for CUPS queues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git am fix for 3.5.x, 3.4.x.
0001-Fix-bug-7269-Job-management-commands-don-t-work-for-.patch (text/plain), 1.94 KB, created by
Jeremy Allison
on 2010-03-24 19:43:26 UTC
(
hide
)
Description:
git am fix for 3.5.x, 3.4.x.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2010-03-24 19:43:26 UTC
Size:
1.94 KB
patch
obsolete
>From 845c2281c7513bd3139a8f50b593658b32dbdb31 Mon Sep 17 00:00:00 2001 >From: Michael Karcher <samba@mkarcher.dialup.fu-berlin.de> >Date: Wed, 24 Mar 2010 17:33:21 -0700 >Subject: [PATCH] Fix bug #7269 - Job management commands don't work for CUPS queues. > >Samba needs to retrieve pjob->sysjob from the CUPS response (as >is done in the iprint backend). >--- > source3/printing/print_cups.c | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) > >diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c >index 804173f..fc1f52a 100644 >--- a/source3/printing/print_cups.c >+++ b/source3/printing/print_cups.c >@@ -905,6 +905,7 @@ static int cups_job_submit(int snum, struct printjob *pjob) > http_t *http = NULL; /* HTTP connection to server */ > ipp_t *request = NULL, /* IPP Request */ > *response = NULL; /* IPP Response */ >+ ipp_attribute_t *attr_job_id = NULL; /* IPP Attribute "job-id" */ > cups_lang_t *language = NULL; /* Default language */ > char uri[HTTP_MAX_URI]; /* printer-uri attribute */ > const char *clientname = NULL; /* hostname of client for job-originating-host attribute */ >@@ -919,7 +920,7 @@ static int cups_job_submit(int snum, struct printjob *pjob) > size_t size; > char addr[INET6_ADDRSTRLEN]; > >- DEBUG(5,("cups_job_submit(%d, %p (%d))\n", snum, pjob, pjob->sysjob)); >+ DEBUG(5,("cups_job_submit(%d, %p)\n", snum, pjob)); > > /* > * Make sure we don't ask for passwords... >@@ -1026,6 +1027,13 @@ static int cups_job_submit(int snum, struct printjob *pjob) > ippErrorString(cupsLastError()))); > } else { > ret = 0; >+ attr_job_id = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER); >+ if(attr_job_id) { >+ pjob->sysjob = attr_job_id->values[0].integer; >+ DEBUG(5,("cups_job_submit: job-id %d\n", pjob->sysjob)); >+ } else { >+ DEBUG(0,("Missing job-id attribute in IPP response")); >+ } > } > } else { > DEBUG(0,("Unable to print file to `%s' - %s\n", PRINTERNAME(snum), >-- >1.7.0.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:
gd
:
review+
Actions:
View
Attachments on
bug 7269
:
5517
| 5537