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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Nov 2013 21:34:24 +0000 (22:34 +0100)
commit9ad3d28ab37b49fb9297c6bef7fad265edd1b599
treec98aef7bf6577ca29b467c6a5a44a6c58c70045f
parent0fa726b270607ea79cd38401e2c204a36c331d7a
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
(cherry picked from commit b7da5a5b00f6c78e41279415e33c091dcc0a773b)

Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Tue Nov 26 22:34:24 CET 2013 on sn-devel-104
source3/printing/printing.c