summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-05 08:42:53 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-06 10:18:37 +0200
commite91c22353153d8f701eb307e3edeb937da0cb5da (patch)
treef5f46283cfde4b7a385abee7ad8a76e43b6cea83 /source3
parentc2ffe330b4c33d70699882297122a450caedbecb (diff)
downloadsamba-e91c22353153d8f701eb307e3edeb937da0cb5da.tar.gz
samba-e91c22353153d8f701eb307e3edeb937da0cb5da.tar.bz2
samba-e91c22353153d8f701eb307e3edeb937da0cb5da.zip
s3:smbd: use print_spool_rap_jobid() in call_trans2ioctl()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index af2a21fdf2..3787fa9721 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -37,6 +37,7 @@
#include "auth.h"
#include "smbprofile.h"
#include "rpc_server/srv_pipe_hnd.h"
+#include "printing.h"
#define DIR_ENTRY_SAFETY_MARGIN 4096
@@ -8419,11 +8420,8 @@ static void call_trans2ioctl(connection_struct *conn,
CAN ACCEPT THIS IN UNICODE. JRA. */
/* Job number */
- if (fsp->print_file) {
- SSVAL(pdata, 0, fsp->print_file->rap_jobid);
- } else {
- SSVAL(pdata, 0, 0);
- }
+ SSVAL(pdata, 0, print_spool_rap_jobid(fsp->print_file));
+
srvstr_push(pdata, req->flags2, pdata + 2,
lp_netbios_name(), 15,
STR_ASCII|STR_TERMINATE); /* Our NetBIOS name */