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 | fc7d3e4caa7650c02ef36fff83b64b06050f66b1 (patch) | |
tree | 8fbe7f4ec700a5f2f42397683783e7d19249337a /source3/smbd/fileio.c | |
parent | bc747b8a077d22344aa03bbba202f5137b59284d (diff) | |
download | samba-fc7d3e4caa7650c02ef36fff83b64b06050f66b1.tar.gz samba-fc7d3e4caa7650c02ef36fff83b64b06050f66b1.tar.bz2 samba-fc7d3e4caa7650c02ef36fff83b64b06050f66b1.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.
(This used to be commit 475992730c0ecbf31c09b3518df2f0354cec61da)
Diffstat (limited to 'source3/smbd/fileio.c')
-rw-r--r-- | source3/smbd/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index 5c4bf7dfc2..ebc4544a76 100644 --- a/source3/smbd/fileio.c +++ b/source3/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); |