diff options
author | Jeremy Allison <jra@samba.org> | 2013-09-17 11:24:05 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-09-17 23:40:08 +0200 |
commit | 17a9a0f37bbb730d09b3a57b00665d44aac18ea6 (patch) | |
tree | eedd18e8669fc37caca713c7c1f5721f14de61ce /source3 | |
parent | cdc280deb1e6f99ec9eae05d75bc1104448662ef (diff) | |
download | samba-17a9a0f37bbb730d09b3a57b00665d44aac18ea6.tar.gz samba-17a9a0f37bbb730d09b3a57b00665d44aac18ea6.tar.bz2 samba-17a9a0f37bbb730d09b3a57b00665d44aac18ea6.zip |
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
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index bdf6c50647..a348644d17 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); |