1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s3: Use error status instead of cli_errstr

This commit is contained in:
Volker Lendecke 2010-07-26 09:21:17 +02:00
parent 5030ba5e94
commit 9a2d08bd3c

View File

@ -1566,10 +1566,12 @@ static int do_allinfo(const char *name)
unsigned int num_streams;
struct stream_struct *streams;
unsigned int i;
NTSTATUS status;
if (!NT_STATUS_IS_OK(cli_qpathinfo_alt_name(cli, name, altname))) {
d_printf("%s getting alt name for %s\n",
cli_errstr(cli),name);
status = cli_qpathinfo_alt_name(cli, name, altname);
if (!NT_STATUS_IS_OK(status)) {
d_printf("%s getting alt name for %s\n", nt_errstr(status),
name);
return false;
}
d_printf("altname: %s\n", altname);