[Libreoffice] [PATCH] Replace command domainname by getdomainname() on Unix

Lionel Elie Mamane lionel at mamane.lu
Sun Nov 13 05:17:13 PST 2011


On Sun, Nov 13, 2011 at 12:46:06PM +0200, Noel Grandin wrote:

> GetDomainName is only used by
>   GetYPDomainName
> in the same file

> which in turn is only used by
>  const rtl::OUString& SubstitutePathVariables_Impl::GetYPDomainName()
> in
>   /core/framework/source/services/substitutepathvars.cxx

> which in turn is only used by
>   bool SubstitutePathVariables_Impl::FilterRuleSet( const
> SubstituteRuleVector& aRuleSet, SubstituteRule& aActiveRule )
> in the same file.

> and that particular codepath in that method is only referenced when the
>   enum EnvironmentType {
>       ET_YPDOMAIN
> constant is used.

This all suggests that it *is* the nis domain that should be returned
there, not the DNS domain.

On Sun, Nov 13, 2011 at 11:58:51AM +0100, Arnaud Versini wrote:

> This function is also used in _osl_getFullQualifiedDomainName,

No, it does not. Not in master, not in libreoffice-3-4.
osl_getFullQualifiedDomainName uses gethostbyname_r.

-- 
Lionel


More information about the LibreOffice mailing list