diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-26 09:21:17 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-26 23:01:37 +0200 |
commit | 9a2d08bd3c10b8632c1497cfac3f91bcccbed8a7 (patch) | |
tree | c866fb331e9d6e6798ac4092c7a74cc8adce6657 /source3 | |
parent | 5030ba5e9473b4d169f69afdcf2de20ce14f82f9 (diff) | |
download | samba-9a2d08bd3c10b8632c1497cfac3f91bcccbed8a7.tar.gz samba-9a2d08bd3c10b8632c1497cfac3f91bcccbed8a7.tar.bz2 samba-9a2d08bd3c10b8632c1497cfac3f91bcccbed8a7.zip |
s3: Use error status instead of cli_errstr
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 326c23e657..b88f180855 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -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); |