client_get_cur_dir(), &targetcli,
&targetpath);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("Error in dskattr: %s\n", cli_errstr(cli));
+ d_printf("Error in dskattr: %s\n", nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, new_cd,
&targetcli, &targetpath);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("cd %s: %s\n", new_cd, cli_errstr(cli));
+ d_printf("cd %s: %s\n", new_cd, nt_errstr(status));
client_set_cur_dir(saved_dir);
goto out;
}
head, &targetcli,
&targetpath);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("do_list: [%s] %s\n", head, cli_errstr(cli));
+ d_printf("do_list: [%s] %s\n", head,
+ nt_errstr(status));
remove_do_list_queue_head();
continue;
}
status = cli_resolve_path(ctx, "", auth_info, cli, rname, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("Failed to open %s: %s\n", rname, cli_errstr(cli));
+ d_printf("Failed to open %s: %s\n", rname, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, name, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("mkdir %s: %s\n", name, cli_errstr(cli));
+ d_printf("mkdir %s: %s\n", name, nt_errstr(status));
return false;
}
status = cli_resolve_path(ctx, "", auth_info, cli, rname,
&targetcli, &targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("Failed to open %s: %s\n", rname, cli_errstr(cli));
+ d_printf("Failed to open %s: %s\n", rname, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("cmd_wdel %s: %s\n", mask, cli_errstr(cli));
+ d_printf("cmd_wdel %s: %s\n", mask, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("open %s: %s\n", mask, cli_errstr(cli));
+ d_printf("open %s: %s\n", mask, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("posix_open %s: %s\n", mask, cli_errstr(cli));
+ d_printf("posix_open %s: %s\n", mask, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("posix_mkdir %s: %s\n", mask, cli_errstr(cli));
+ d_printf("posix_mkdir %s: %s\n", mask, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("posix_unlink %s: %s\n", mask, cli_errstr(cli));
+ d_printf("posix_unlink %s: %s\n", mask, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("posix_rmdir %s: %s\n", mask, cli_errstr(cli));
+ d_printf("posix_rmdir %s: %s\n", mask, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("rmdir %s: %s\n", mask, cli_errstr(cli));
+ d_printf("rmdir %s: %s\n", mask, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, oldname, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("link %s: %s\n", oldname, cli_errstr(cli));
+ d_printf("link %s: %s\n", oldname, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, name, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("readlink %s: %s\n", name, cli_errstr(cli));
+ d_printf("readlink %s: %s\n", name, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, newname,
&newcli, &newname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("link %s: %s\n", oldname, cli_errstr(cli));
+ d_printf("link %s: %s\n", oldname, nt_errstr(status));
return 1;
}
status = cli_posix_symlink(newcli, oldname, newname);
status = cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("chmod %s: %s\n", src, cli_errstr(cli));
+ d_printf("chmod %s: %s\n", src, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("stat %s: %s\n", src, cli_errstr(cli));
+ d_printf("stat %s: %s\n", src, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("stat %s: %s\n", src, cli_errstr(cli));
+ d_printf("stat %s: %s\n", src, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("stat %s: %s\n", src, cli_errstr(cli));
+ d_printf("stat %s: %s\n", src, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("stat %s: %s\n", src, cli_errstr(cli));
+ d_printf("stat %s: %s\n", src, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("chown %s: %s\n", src, cli_errstr(cli));
+ d_printf("chown %s: %s\n", src, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli,
&targetsrc);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("rename %s: %s\n", src, cli_errstr(cli));
+ d_printf("rename %s: %s\n", src, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, dest, &targetcli,
&targetdest);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("rename %s: %s\n", dest, cli_errstr(cli));
+ d_printf("rename %s: %s\n", dest, nt_errstr(status));
return 1;
}
status = cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli,
&targetname);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("hardlink %s: %s\n", src, cli_errstr(cli));
+ d_printf("hardlink %s: %s\n", src, nt_errstr(status));
return 1;
}
client_get_cur_dir(), &targetcli,
&targetpath);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("showconnect %s: %s\n", cur_dir, cli_errstr(cli));
+ d_printf("showconnect %s: %s\n", cur_dir, nt_errstr(status));
return 1;
}