1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

don't mistake pre-existing UNIX jobs for smb jobs; patch from SATOH Fumiyasu bug 770

This commit is contained in:
Gerald Carter -
parent 5d0b8280f6
commit 3a55788dca

View File

@ -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));