diff options
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 8 |
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; } |