spoolss: return the spoolss job ID in notifications
authorDavid Disseldorp <ddiss@samba.org>
Fri, 20 Sep 2013 03:31:37 +0000 (20:31 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Nov 2013 19:37:47 +0000 (20:37 +0100)
commit0fa726b270607ea79cd38401e2c204a36c331d7a
tree7ea97c73a400ef2ebde66ce9367000492d814b7e
parent68f00471a945ccc9c58120db90eeb475e04a0c90
spoolss: return the spoolss job ID in notifications

Print job notifications currently carry the system print job identifier
from the queue structure. Instead, the spoolss job identifier should be
resolved and returned.

Print clients can use notification job-ids in subsequent spoolss SetJob
requests. Returning an incorrect identifier can result in the failure of
such requests, e.g. spoolss_SetJob(SPOOLSS_JOB_CONTROL_DELETE).

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>
(cherry picked from commit 24d025f85d6eea272bff5e1040d4fd2ba0e6b8f3)
source3/include/printing.h
source3/printing/printing.c
source3/rpc_server/spoolss/srv_spoolss_nt.c