diff options
author | Gerald Carter <jerry@samba.org> | 2002-11-08 18:45:38 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-11-08 18:45:38 +0000 |
commit | 698fe3f07ab059fc2b0a3bac47e36748704fde6d (patch) | |
tree | ca5cc8cd231091cbca14aff01e0bdd5efe95c1ba | |
parent | 66531104fed805080b53838eb720e81393675f98 (diff) | |
download | samba-698fe3f07ab059fc2b0a3bac47e36748704fde6d.tar.gz samba-698fe3f07ab059fc2b0a3bac47e36748704fde6d.tar.bz2 samba-698fe3f07ab059fc2b0a3bac47e36748704fde6d.zip |
patches from Urban
(This used to be commit 850b185a6e33fa924fa59cdd6316c9160ba65270)
-rw-r--r-- | source3/lib/util_unistr.c | 2 | ||||
-rw-r--r-- | source3/libsmb/cliconnect.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index eb47252413..8e41581f75 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -335,6 +335,8 @@ smb_ucs2_t *strchr_w(const smb_ucs2_t *s, smb_ucs2_t c) if (c == *s) return (smb_ucs2_t *)s; s++; } + if (c == *s) return (smb_ucs2_t *)s; + return NULL; } diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 6a21121f43..890dc4dc25 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -124,6 +124,9 @@ static uint32 cli_session_setup_capabilities(struct cli_state *cli) if (cli->capabilities & CAP_UNICODE) capabilities |= CAP_UNICODE; + if (cli->capabilities & CAP_LARGE_FILES) + capabilities |= CAP_LARGE_FILES; + return capabilities; } |