diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-11 21:42:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-11 21:42:18 +0000 |
commit | 9b20e5bac2a7b83f8e3dfdf3a274a1ce12dbd92c (patch) | |
tree | 645fd7c7d70c04e88018e1c1233dc8df52989562 /source3/smbd/reply.c | |
parent | 27d0bef143fbc4d7547c022046c094bbdbd0bfc1 (diff) | |
download | samba-9b20e5bac2a7b83f8e3dfdf3a274a1ce12dbd92c.tar.gz samba-9b20e5bac2a7b83f8e3dfdf3a274a1ce12dbd92c.tar.bz2 samba-9b20e5bac2a7b83f8e3dfdf3a274a1ce12dbd92c.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.
(This used to be commit 54dd51176fbab18af0b21bdee71b53f8f86573a8)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index e956ab6cd9..38c39efad6 100644 --- a/source3/smbd/reply.c +++ b/source3/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. */ |