printing: always store sytem job-ID in queue state
authorDavid Disseldorp <ddiss@samba.org>
Fri, 18 Oct 2013 11:09:23 +0000 (13:09 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 18 Nov 2013 17:03:41 +0000 (18:03 +0100)
commitb7da5a5b00f6c78e41279415e33c091dcc0a773b
treebbe1ca8bb8e01022490ef39142eec194fd2996ff
parent24d025f85d6eea272bff5e1040d4fd2ba0e6b8f3
printing: always store sytem job-ID in queue state

Print jobs have multiple identifiers: the regular spoolss jobid, which
is allocated by spoolss on job submission, and the system jobid, which
is assigned by the printing back-end.
Currently these identifiers are incorrectly mixed in print job queue
tracking. Fix this by ensuring that only the system jobid is stored in
the print queue state structure.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10271

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Mon Nov 18 18:03:41 CET 2013 on sn-devel-104
source3/printing/printing.c