there is this portion of code in _osl_getFullQualifiedDomainName :<br><br><pre><code> if (nLengthOfDomainName == 0)
{
sal_Char pDomainNameBuffer[ DOMAINNAME_LENGTH ];
pDomainNameBuffer[0] = '\0';
if (_osl_getDomainName (pDomainNameBuffer, DOMAINNAME_LENGTH))
{
pDomainName = strdup (pDomainNameBuffer);
nLengthOfDomainName = strlen (pDomainName);
}
}</code></pre><br><br><div class="gmail_quote">2011/11/13 Lionel Elie Mamane <span dir="ltr"><<a href="mailto:lionel@mamane.lu">lionel@mamane.lu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Nov 13, 2011 at 12:46:06PM +0200, Noel Grandin wrote:<br>
<br>
> GetDomainName is only used by<br>
> GetYPDomainName<br>
> in the same file<br>
<br>
> which in turn is only used by<br>
> const rtl::OUString& SubstitutePathVariables_Impl::GetYPDomainName()<br>
> in<br>
> /core/framework/source/services/substitutepathvars.cxx<br>
<br>
> which in turn is only used by<br>
> bool SubstitutePathVariables_Impl::FilterRuleSet( const<br>
> SubstituteRuleVector& aRuleSet, SubstituteRule& aActiveRule )<br>
> in the same file.<br>
<br>
> and that particular codepath in that method is only referenced when the<br>
> enum EnvironmentType {<br>
> ET_YPDOMAIN<br>
> constant is used.<br>
<br>
</div>This all suggests that it *is* the nis domain that should be returned<br>
there, not the DNS domain.<br>
<div class="im"><br>
On Sun, Nov 13, 2011 at 11:58:51AM +0100, Arnaud Versini wrote:<br>
<br>
> This function is also used in _osl_getFullQualifiedDomainName,<br>
<br>
</div>No, it does not. Not in master, not in libreoffice-3-4.<br>
osl_getFullQualifiedDomainName uses gethostbyname_r.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Lionel<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Arnaud Versini<br>