diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-08-31 02:18:59 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-08-31 02:18:59 +0000 |
commit | 3556763be3acbf01c967ee9717943dd44163fb9f (patch) | |
tree | e4e60be60413ee1c43ea6044cc799d5b8af33967 /source/smbd/reply.c | |
parent | 550e98f2d49a101654b3abde278a7f7edf347ed8 (diff) | |
download | samba-3556763be3acbf01c967ee9717943dd44163fb9f.tar.gz samba-3556763be3acbf01c967ee9717943dd44163fb9f.tar.xz samba-3556763be3acbf01c967ee9717943dd44163fb9f.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 ...
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index cadd63e0457..4616ea14ed0 100644 --- a/source/smbd/reply.c +++ b/source/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); |