summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-19 23:33:32 +0000
committerJeremy Allison <jra@samba.org>2002-03-19 23:33:32 +0000
commitadf243144326f7481442feedfb841cc59c2e949c (patch)
tree3ebd4d26fec1a650e6f40b6d50265f052933c7b4
parent45c8a07d5c962a8cf054883be53c4d0206ed5e95 (diff)
downloadsamba-adf243144326f7481442feedfb841cc59c2e949c.tar.gz
samba-adf243144326f7481442feedfb841cc59c2e949c.tar.bz2
samba-adf243144326f7481442feedfb841cc59c2e949c.zip
Merge JohnR's fix.
Jeremy. (This used to be commit d5fd1fd859cec3076d2f01ed234314ea8d80a753)
-rw-r--r--source3/printing/print_generic.c15
1 files changed, 10 insertions, 5 deletions
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);