s3: libsmb - 10150 - Not all OEM servers support the ALTNAME info level.
authorJeremy Allison <jra@samba.org>
Wed, 18 Sep 2013 01:10:16 +0000 (18:10 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Sep 2013 15:58:30 +0000 (08:58 -0700)
Sigh. Some OEM servers return NT_STATUS_NOT_IMPLEMENTED not
NT_STATUS_NOT_SUPPORTED.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/client/client.c

index a348644d17750f8099e7cc635064d7b27ac5f413..c3a557ede6c0d25874772311ff62e39dff130b47 100644 (file)
@@ -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;