From 850b185a6e33fa924fa59cdd6316c9160ba65270 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 8 Nov 2002 18:45:38 +0000 Subject: [PATCH] patches from Urban --- source/lib/util_unistr.c | 2 ++ source/libsmb/cliconnect.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/source/lib/util_unistr.c b/source/lib/util_unistr.c index eb472524131..8e41581f754 100644 --- a/source/lib/util_unistr.c +++ b/source/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/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c index 6a21121f436..890dc4dc251 100644 --- a/source/libsmb/cliconnect.c +++ b/source/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; }