From 7f7ebfaecbe3458a4c3e8fc79b68dd247ef4e31e Mon Sep 17 00:00:00 2001 From: SATOH Fumiyasu Date: Tue, 30 Jun 2009 15:29:08 -0700 Subject: Fix bug #6496 - MS-DFS: cannot follow multibyte char link name. consumed_ucs is the number of bytes of the UCS2 path consumed not counting any terminating null. We need to convert back to unix charset and count again to get the number of bytes consumed from the incoming path. --- source3/include/proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index 49afd8c466..a3ae1ddad7 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2260,7 +2260,7 @@ bool cli_dfs_get_referral(TALLOC_CTX *ctx, const char *path, CLIENT_DFS_REFERRAL**refs, size_t *num_refs, - uint16 *consumed); + size_t *consumed); bool cli_resolve_path(TALLOC_CTX *ctx, const char *mountpt, const struct user_auth_info *dfs_auth_info, -- cgit