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:
parent
5030ba5e94
commit
9a2d08bd3c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user