diff options
author | Gerald Carter <jerry@samba.org> | 2003-12-01 18:02:30 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-12-01 18:02:30 +0000 |
commit | 905a32a5adc4aaad7395abcfd48b1adf1065abf5 (patch) | |
tree | 4c059b4e97ebfb39de33ba1f1f693262efad6a66 /source3 | |
parent | 1ccd951fafeed7e899d84846264b4ed63a251322 (diff) | |
download | samba-905a32a5adc4aaad7395abcfd48b1adf1065abf5.tar.gz samba-905a32a5adc4aaad7395abcfd48b1adf1065abf5.tar.bz2 samba-905a32a5adc4aaad7395abcfd48b1adf1065abf5.zip |
don't mistake pre-existing UNIX jobs for smb jobs; patch from SATOH Fumiyasu bug 770
(This used to be commit d6333ae8d707c17a6fa26a39b14a802bc816ab3f)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/printing.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index a4949f78e9..791c41fe69 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -612,12 +612,14 @@ static void print_unix_job(int snum, print_queue_struct *q, uint32 jobid) pj.status = q->status; pj.size = q->size; pj.spooled = True; - pj.smbjob = (old_pj != NULL ? True : False); fstrcpy(pj.filename, old_pj ? old_pj->filename : ""); - if (jobid < UNIX_JOB_START) + if (jobid < UNIX_JOB_START) { + pj.smbjob = (old_pj != NULL ? True : False); fstrcpy(pj.jobname, old_pj ? old_pj->jobname : "Remote Downlevel Document"); - else + } else { + pj.smbjob = False; fstrcpy(pj.jobname, old_pj ? old_pj->jobname : q->fs_file); + } fstrcpy(pj.user, old_pj ? old_pj->user : q->fs_user); fstrcpy(pj.queuename, old_pj ? old_pj->queuename : lp_const_servicename(snum)); |