[PATCH 1/3] libsmb: Use smbXcli_conn_use_unicode instead of smb1 specific test

Luk Claes luk at debian.org
Sun May 19 04:44:50 MDT 2013


Signed-off-by: Luk Claes <luk at debian.org>
Reviewed-by: Stefan Metzmacher <metze at samba.org>
---
 source3/libsmb/clidfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index 95f8817..41996fe 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -600,7 +600,7 @@ static bool cli_dfs_check_error(struct cli_state *cli, NTSTATUS expected,
 {
 	/* only deal with DS when we negotiated NT_STATUS codes and UNICODE */
 
-	if (!(smb1cli_conn_capabilities(cli->conn) & CAP_UNICODE)) {
+	if (!(smbXcli_conn_use_unicode(cli->conn))) {
 		return false;
 	}
 	if (!(smb1cli_conn_capabilities(cli->conn) & CAP_STATUS32)) {
-- 
1.7.10.4



More information about the samba-technical mailing list