From a75cbcd5b7d5c5432e807c5dfc69ee9a846a5537 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 17 Sep 2013 18:10:16 -0700 Subject: [PATCH] s3: libsmb - 10150 - Not all OEM servers support the ALTNAME info level. Sigh. Some OEM servers return NT_STATUS_NOT_IMPLEMENTED not NT_STATUS_NOT_SUPPORTED. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke (cherry picked from commit 75f353b857d50291672adefc6eefd210c9e8a0f7) Autobuild-User(v4-1-test): Karolin Seeger Autobuild-Date(v4-1-test): Thu Sep 19 12:06:58 CEST 2013 on sn-devel-104 --- source3/client/client.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index 0e05c8908b7..afa58475f2f 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1710,10 +1710,11 @@ static int do_allinfo(const char *name) d_printf("%s getting alt name for %s\n", nt_errstr(status), name); /* - * Ignore not supported, it does not hurt if we can't list - * alternate names. + * Ignore not supported or not implemented, it does not + * hurt if we can't list alternate names. */ - if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED)) { + if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED) || + NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) { altname[0] = '\0'; } else { return false; -- 2.11.4.GIT