spoolss: return the spoolss job ID in notifications
commit15cd0e09fa85cf148975b0db5fe7be06f16d7702
authorDavid Disseldorp <ddiss@samba.org>
Fri, 20 Sep 2013 03:31:37 +0000 (19 20:31 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Nov 2013 19:38:14 +0000 (26 20:38 +0100)
tree5026ad5474d74caf11e80f95dc7550aebc5272af
parenteb9fde4097c1911bce3fbedc1d0e2555f6e3e7b2
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