summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/printing/printing.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c
index a4949f78e97..791c41fe69c 100644
--- a/source/printing/printing.c
+++ b/source/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));