diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-18 03:00:20 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-18 03:00:20 +0000 |
commit | c7da9992cb39fc84a6a915dd2158beaf5e616617 (patch) | |
tree | 73f84eb8340e52b0362b3c7f84710062114194e4 /source3/smbd/negprot.c | |
parent | fdc07d1417274d10038da83cee2ea718e6a7abec (diff) | |
download | samba-c7da9992cb39fc84a6a915dd2158beaf5e616617.tar.gz samba-c7da9992cb39fc84a6a915dd2158beaf5e616617.tar.xz samba-c7da9992cb39fc84a6a915dd2158beaf5e616617.zip |
gto ri of a bunch more #ifdef LARGE_SMB_OFF_T checks by introducing a
SOFF_T() macro for setting an SMB_OFF_T variable
also limited mmap based reads to MAX_MMAP_SIZE. We really can't mmap
2^50 bytes due to virtual address space problems.
(This used to be commit 4e784b18899eddd2399a51fa7d8c219560432922)
Diffstat (limited to 'source3/smbd/negprot.c')
-rw-r--r-- | source3/smbd/negprot.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index e79743cfd4b..d4e6180261b 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -161,11 +161,8 @@ static int reply_nt1(char *outbuf) /* dual names + lock_and_read + nt SMBs + remote API calls */ int capabilities = CAP_NT_FIND|CAP_LOCK_AND_READ| (lp_nt_smb_support() ? CAP_NT_SMBS | CAP_RPC_REMOTE_APIS : 0) | -#ifdef LARGE_SMB_OFF_T - (sizeof(SMB_OFF_T) == 8 ? CAP_LARGE_FILES : 0); -#else - 0; -#endif + (SMB_OFF_T_BITS == 64 ? CAP_LARGE_FILES : 0); + /* other valid capabilities which we may support at some time... |