summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-09-17 11:24:05 -0700
committerKarolin Seeger <kseeger@samba.org>2013-09-19 10:20:19 +0200
commitc69e7c374ef5c30c6bc206d27ad64bf12109388a (patch)
treee028037038903344bc4ea56d8beed458f172b12c
parent4e5e7e4ee03475e2e648f4401a2a6beaa941c682 (diff)
downloadsamba-c69e7c374ef5c30c6bc206d27ad64bf12109388a.tar.gz
s3: libsmb : Bug 10150 - Not all OEM servers support the ALTNAME info level.
Just ignore and print error message and an altname of "" if the server returns NT_STATUS_NOT_SUPPORTED. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Sep 17 23:40:08 CEST 2013 on sn-devel-104 (cherry picked from commit 17a9a0f37bbb730d09b3a57b00665d44aac18ea6)
-rw-r--r--source3/client/client.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 0d1f5b44fa5..0e05c8908b7 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1709,7 +1709,15 @@ static int do_allinfo(const char *name)
if (!NT_STATUS_IS_OK(status)) {
d_printf("%s getting alt name for %s\n", nt_errstr(status),
name);
- return false;
+ /*
+ * Ignore not supported, it does not hurt if we can't list
+ * alternate names.
+ */
+ if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED)) {
+ altname[0] = '\0';
+ } else {
+ return false;
+ }
}
d_printf("altname: %s\n", altname);