Created attachment 18698 [details] Before ignoring the NT_STATUS_OBJECT_NAME_NOT_FOUND - allinfo fails on Altname and returns,, instead of ignoring if we dont have altname as per the comment. It appears that if the altname (8dot3name) is not set for the file for which this information is fetched, smbclient simply returns the error NT_STATUS_OBJECT_NAME_NOT_FOUND instead of ignoring if the altname is not available. I have gone through the allinfo method in source code and there's comment reflecting that this should be the case i.e. the altname should be ignored if not found. Following is a snippet I'm referring to. if (!NT_STATUS_IS_OK(status)) { d_printf("%s getting alt name for %s\n", nt_errstr(status), name); /* * 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) || NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) { altname[0] = '\0'; } else { return false; } } I tried ignoring the NT_STATUS_OBJECT_NAME_NOT_FOUND error just like the other two statuses and it seem to work find. I will attach the output for before and after change. Updated code looks like this if (!NT_STATUS_IS_OK(status)) { d_printf("%s getting alt name for %s\n", nt_errstr(status), name); /* * Ignore not supported or not implemented or object name not * found, it does not hurt if we can't list alternate names. */ if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED) || NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED) || NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) { altname[0] = '\0'; } else { return false; } }