summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-08-31 02:18:59 +0000
committerAndrew Tridgell <tridge@samba.org>1997-08-31 02:18:59 +0000
commitf434139087ea45ed1eb578267843943b0f04c94c (patch)
tree573b9db9136913863364f057c7fe66c84fc7bd6d /source3/smbd/reply.c
parent06dc98f220dba6d602010df235679c6584cba279 (diff)
downloadsamba-f434139087ea45ed1eb578267843943b0f04c94c.tar.gz
samba-f434139087ea45ed1eb578267843943b0f04c94c.tar.bz2
samba-f434139087ea45ed1eb578267843943b0f04c94c.zip
fixed a bug in the printjob encoding/decoding. We weren't doing it for
the print_ functions in reply.c, with the effect that you couldn't cancel print jobs from smbclient or from older dos clients. we now use a couple of utility functions printjob_encode() and printjob_decode() rather than sticking the bitops inline in each place. also fixed a bunch of places that used foo%0xFF rather than foo&0xFF Note that this isn't really me doing the commit, it can't be as I'm working on my thesis ... (This used to be commit 3556763be3acbf01c967ee9717943dd44163fb9f)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index cadd63e045..4616ea14ed 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2463,7 +2463,7 @@ int reply_printqueue(char *inbuf,char *outbuf)
{
put_dos_date2(p,0,queue[i].time);
CVAL(p,4) = (queue[i].status==LPQ_PRINTING?2:3);
- SSVAL(p,5,queue[i].job);
+ SSVAL(p,5,printjob_encode(SNUM(cnum), queue[i].job));
SIVAL(p,7,queue[i].size);
CVAL(p,11) = 0;
StrnCpy(p+12,queue[i].user,16);