patches from Urban
authorGerald Carter <jerry@samba.org>
Fri, 8 Nov 2002 18:44:57 +0000 (18:44 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 8 Nov 2002 18:44:57 +0000 (18:44 +0000)
(This used to be commit da269a73edb7f637b1e1f8b3dafe677f46f66f85)

source3/lib/util_unistr.c
source3/libsmb/cliconnect.c

index eb47252413133928590182abdbaaceb22daa25e9..8e41581f75475ae988d429660ed5210dab50a544 100644 (file)
@@ -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;
 }
 
index a404928a93361d498fc71f85510bb55ae7b79d73..ee311932a7ffd4dee0a321cc6f602e031849e42f 100644 (file)
@@ -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;
 }