mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
allow users to delete jobs with cups printing backend
The changes the name of the job passed off to cups
from "Test Page" to "smbprn.00000033 Test Page" so that
we can get the smb jobid back from lpq. Working on bug
770.
(This used to be commit 5979f4d645
)
This commit is contained in:
parent
6ce882ef29
commit
055750f090
@ -682,6 +682,7 @@ cups_job_submit(int snum, struct printjob *pjob)
|
||||
cups_lang_t *language; /* Default language */
|
||||
char uri[HTTP_MAX_URI]; /* printer-uri attribute */
|
||||
char *clientname; /* hostname of client for job-originating-host attribute */
|
||||
pstring new_jobname;
|
||||
|
||||
DEBUG(5,("cups_job_submit(%d, %p (%d))\n", snum, pjob, pjob->sysjob));
|
||||
|
||||
@ -744,8 +745,11 @@ cups_job_submit(int snum, struct printjob *pjob)
|
||||
"job-originating-host-name", NULL,
|
||||
clientname);
|
||||
|
||||
pstr_sprintf(new_jobname,"%s%.8u %s", PRINT_SPOOL_PREFIX,
|
||||
(unsigned int)pjob->smbjob, pjob->jobname);
|
||||
|
||||
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL,
|
||||
pjob->jobname);
|
||||
new_jobname);
|
||||
|
||||
/*
|
||||
* Do the request and get back a response...
|
||||
|
@ -2063,6 +2063,8 @@ BOOL print_job_end(int snum, uint32 jobid, BOOL normal_close)
|
||||
return True;
|
||||
}
|
||||
|
||||
pjob->smbjob = jobid;
|
||||
|
||||
ret = (*(current_printif->job_submit))(snum, pjob);
|
||||
|
||||
if (ret)
|
||||
|
Loading…
Reference in New Issue
Block a user