From 8930a9c52008c7c9a755b213f857dfa2247f6823 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 7 Feb 2010 14:07:17 +0100 Subject: s3: Convert cli_qpathinfo_basic to use cli_trans() --- source3/client/client.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index 1ceb3ab639..24fae3901b 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -408,8 +408,12 @@ static int do_cd(const char *new_dir) Except Win9x doesn't support the qpathinfo_basic() call..... */ if (targetcli->protocol > PROTOCOL_LANMAN2 && !targetcli->win95) { - if (!cli_qpathinfo_basic( targetcli, targetpath, &sbuf, &attributes ) ) { - d_printf("cd %s: %s\n", new_cd, cli_errstr(targetcli)); + NTSTATUS status; + + status = cli_qpathinfo_basic(targetcli, targetpath, &sbuf, + &attributes); + if (!NT_STATUS_IS_OK(status)) { + d_printf("cd %s: %s\n", new_cd, nt_errstr(status)); client_set_cur_dir(saved_dir); goto out; } -- cgit