spoolss: fix GetJob jobid lookups
commit7bf4cb07163d62ebc2e4155b74e108a812e362ff
authorDavid Disseldorp <ddiss@samba.org>
Thu, 30 Oct 2014 00:37:47 +0000 (30 01:37 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 Nov 2014 20:21:11 +0000 (17 21:21 +0100)
tree669e73c94fca53df66814b840a698ba61b997ddb
parent9f438fdbe309c6abeb86b7d1f2011716b7d8a0b4
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