diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-11 19:14:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-11 19:14:27 +0000 |
commit | 27d0bef143fbc4d7547c022046c094bbdbd0bfc1 (patch) | |
tree | 884cadd16fda29312e86a9d19b2bfb1562ff7530 /source3/smbd/negprot.c | |
parent | 06cc91f9a631a23dcd4902d710b89e4b7584c459 (diff) | |
download | samba-27d0bef143fbc4d7547c022046c094bbdbd0bfc1.tar.gz samba-27d0bef143fbc4d7547c022046c094bbdbd0bfc1.tar.bz2 samba-27d0bef143fbc4d7547c022046c094bbdbd0bfc1.zip |
Ok - this is the 'expose 64 bit to the clients' checkin.
I have tested it by creating a 'holey' 20GB file - checking that
it shows up correctl in the NT file view (it does) and am busily
copying it to NULL: on the NT box. All good so far.... :-).
Also implemented NT 'delete on close' semantics.
Jeremy.
(This used to be commit 1654faee80648583e6a47ab7eda990fefdf85124)
Diffstat (limited to 'source3/smbd/negprot.c')
-rw-r--r-- | source3/smbd/negprot.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 6a9cc9fb9b..e9dd4614c4 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -157,11 +157,15 @@ 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); + (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 /* other valid capabilities which we may support at some time... - CAP_LARGE_FILES| CAP_LARGE_READX|CAP_STATUS32|CAP_LEVEL_II_OPLOCKS; */ |