From adf243144326f7481442feedfb841cc59c2e949c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 19 Mar 2002 23:33:32 +0000 Subject: Merge JohnR's fix. Jeremy. (This used to be commit d5fd1fd859cec3076d2f01ed234314ea8d80a753) --- source3/printing/print_generic.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/printing/print_generic.c b/source3/printing/print_generic.c index c570ee3069..e1517c5dcb 100644 --- a/source3/printing/print_generic.c +++ b/source3/printing/print_generic.c @@ -146,6 +146,7 @@ static int generic_job_submit(int snum, struct printjob *pjob) pstring print_directory; char *wd, *p; pstring jobname; + fstring job_page_count, job_size; /* we print from the directory path to give the best chance of parsing the lpq output */ @@ -164,14 +165,18 @@ static int generic_job_submit(int snum, struct printjob *pjob) pstrcpy(jobname, pjob->jobname); pstring_sub(jobname, "'", "_"); + slprintf(job_page_count, sizeof(job_page_count)-1, "%d", pjob->page_count); + slprintf(job_size, sizeof(job_size)-1, "%d", pjob->size); /* send it to the system spooler */ ret = print_run_command(snum, - lp_printcommand(snum), NULL, - "%s", p, - "%J", jobname, - "%f", p, - NULL); + lp_printcommand(snum), NULL, + "%s", p, + "%J", jobname, + "%f", p, + "%z", job_size, + "%c", job_page_count, + NULL); chdir(wd); -- cgit