summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-07 14:07:17 +0100
committerVolker Lendecke <vl@samba.org>2010-02-20 18:59:30 +0100
commit8930a9c52008c7c9a755b213f857dfa2247f6823 (patch)
tree5442a339f200e0859d8fe901d97c9ac16c1431d6 /source3/client
parentb69a74eeca6acbfb1be0ef3eb8f84e2f4700f2a9 (diff)
downloadsamba-8930a9c52008c7c9a755b213f857dfa2247f6823.tar.gz
samba-8930a9c52008c7c9a755b213f857dfa2247f6823.tar.bz2
samba-8930a9c52008c7c9a755b213f857dfa2247f6823.zip
s3: Convert cli_qpathinfo_basic to use cli_trans()
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c8
1 files changed, 6 insertions, 2 deletions
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;
}