The Samba-Bugzilla – Attachment 5517 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]
store job-id of submitted cups jobs
fix-cups-printing.patch (text/plain), 1.40 KB, created by
Michael Karcher
on 2010-03-21 07:08:05 UTC
(
hide
)
Description:
store job-id of submitted cups jobs
Filename:
MIME Type:
Creator:
Michael Karcher
Created:
2010-03-21 07:08:05 UTC
Size:
1.40 KB
patch
obsolete
>Index: samba-3.2.5/source/printing/print_cups.c >=================================================================== >--- samba-3.2.5.orig/source/printing/print_cups.c 2010-03-21 12:54:17.000000000 +0100 >+++ samba-3.2.5/source/printing/print_cups.c 2010-03-21 12:54:34.000000000 +0100 >@@ -561,6 +561,7 @@ > 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 */ >@@ -569,7 +570,7 @@ > cups_option_t *options = NULL; > 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... >@@ -658,6 +659,11 @@ > 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; >+ else >+ DEBUG(0,("Missing job-id attribute in IPP response")); > } > } else { > DEBUG(0,("Unable to print file to `%s' - %s\n", PRINTERNAME(snum),
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 7269
:
5517
|
5537