summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-11 21:42:18 +0000
committerJeremy Allison <jra@samba.org>1998-09-11 21:42:18 +0000
commit54dd51176fbab18af0b21bdee71b53f8f86573a8 (patch)
tree70b8515620b32071373667b775f09c04df7bf3ac /source/smbd/reply.c
parent1654faee80648583e6a47ab7eda990fefdf85124 (diff)
downloadsamba-54dd51176fbab18af0b21bdee71b53f8f86573a8.tar.gz
samba-54dd51176fbab18af0b21bdee71b53f8f86573a8.tar.xz
samba-54dd51176fbab18af0b21bdee71b53f8f86573a8.zip
Ok so with this bugfix 64 bit file access actually seems to work :-).
Problems were just dumb bugs like (defining sys_lseek to return 'int' DOH !). Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index e956ab6cd93..38c39efad6b 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -1792,7 +1792,7 @@ int reply_readbraw(connection_struct *conn, char *inbuf, char *outbuf, int dum_s
startpos = IVAL(inbuf,smb_vwv1);
#ifdef LARGE_SMB_OFF_T
- if(SVAL(inbuf,smb_wct) == 10) {
+ if(CVAL(inbuf,smb_wct) == 10) {
/*
* This is a large offset (64 bit) read.
*/
@@ -2007,7 +2007,7 @@ int reply_read_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
data = smb_buf(outbuf);
#ifdef LARGE_SMB_OFF_T
- if(SVAL(inbuf,smb_wct) == 12) {
+ if(CVAL(inbuf,smb_wct) == 12) {
/*
* This is a large offset (64 bit) read.
*/
@@ -2265,7 +2265,7 @@ int reply_write_and_X(connection_struct *conn, char *inbuf,char *outbuf,int leng
data = smb_base(inbuf) + smb_doff;
#ifdef LLARGE_SMB_OFF_T
- if(SVAL(inbuf,smb_wct) == 14) {
+ if(CVAL(inbuf,smb_wct) == 14) {
/*
* This is a large offset (64 bit) write.
*/