diff options
author | Jeremy Allison <jra@samba.org> | 1998-10-15 00:55:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-10-15 00:55:17 +0000 |
commit | 475992730c0ecbf31c09b3518df2f0354cec61da (patch) | |
tree | 908f12d5f2eea0978f2a5066f70328ccf6314623 /source/smbd/fileio.c | |
parent | 53805112f1a301f77cda93b68e6fa3054895f20f (diff) | |
download | samba-475992730c0ecbf31c09b3518df2f0354cec61da.tar.gz samba-475992730c0ecbf31c09b3518df2f0354cec61da.tar.xz samba-475992730c0ecbf31c09b3518df2f0354cec61da.zip |
config: Fix crypt prototype on RedHat Linux.
include/includes.h: Fix crypt prototype on RedHat Linux.
smbd/fileio.c: Fix mmap bug found by WinCE client.
smbd/ipc.c: Fix WinCE wierdness with pipes being opened as \server\pipe\lanman
smbd/password.c: Fix encrypted null passwords.
Jeremy.
Diffstat (limited to 'source/smbd/fileio.c')
-rw-r--r-- | source/smbd/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/fileio.c b/source/smbd/fileio.c index 5c4bf7dfc23..ebc4544a769 100644 --- a/source/smbd/fileio.c +++ b/source/smbd/fileio.c @@ -63,7 +63,7 @@ ssize_t read_file(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n) #if WITH_MMAP if (fsp->mmap_ptr) { - SMB_OFF_T num = (fsp->mmap_size > pos) ? (fsp->mmap_size - pos) : -1; + SMB_OFF_T num = (fsp->mmap_size > pos) ? (fsp->mmap_size - pos) : 0; num = MIN(n,num); if (num > 0) { memcpy(data,fsp->mmap_ptr+pos,num); |