diff options
author | Gerald Carter <jerry@samba.org> | 2003-12-01 18:02:05 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-12-01 18:02:05 +0000 |
commit | 038784aa80aea37b66ab9eab384dd703837e02b0 (patch) | |
tree | b7ea58c68fbe49b7f1298f85e06733b201ff85d3 /source3/printing | |
parent | 748b268a4f5f91b8592c66fdbf0e2af7dea82417 (diff) | |
download | samba-038784aa80aea37b66ab9eab384dd703837e02b0.tar.gz samba-038784aa80aea37b66ab9eab384dd703837e02b0.tar.bz2 samba-038784aa80aea37b66ab9eab384dd703837e02b0.zip |
don't mistake pre-existing UNIX jobs for smb jobs; patch from SATOH Fumiyasu bug 770
(This used to be commit 3a55788dca537248d0aea9973a84075e142b7736)
Diffstat (limited to 'source3/printing')
-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 32470fb22f..bdcd950450 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -613,12 +613,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)); |