spoolss: fix GetJob jobid lookups
commit0b1a54b8340af6dc2067d5141b9a317df242c6ac
authorDavid Disseldorp <ddiss@samba.org>
Thu, 30 Oct 2014 00:37:47 +0000 (30 01:37 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 18 Nov 2014 20:09:03 +0000 (18 21:09 +0100)
treeba8719bc6aa45746f5939f0ad9edf5e96ead1157
parent136f4d03f510e926cd206cb7358f790c7b5c215e
spoolss: fix GetJob jobid lookups

Clients issue GetJob requests using the jobid assigned by the spoolss
server. The corresponding printing backend (sysjob) identifier needs to
be resolved to locate the correct print queue entry.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10905

Reported-by: Franz Pförtsch <franz.pfoertsch@brose.com>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 3a28ae56977235d3c9e3abcd1f24b220e536c50d)
source3/rpc_server/spoolss/srv_spoolss_nt.c