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

Francois Tigeot ftigeot at wolfpond.org
Sun Nov 13 23:12:20 PST 2011


On Sun, Nov 13, 2011 at 02:16:51PM +0100, Lionel Elie Mamane wrote:
> 
> AFAIK, a well-configured machine has /etc/hosts setup so that
> gethostbyname(gothostname()) does not touch DNS, but is resolved
> entirely from reading /etc/hosts. Doesn't the installer *by* *default*
> set things up like that? At least, the Debian installer does.

/etc/hosts may also contain perfectly valid lines like this one:

  ::1        localhost localhost.my.domain

which don't help a bit.

LibreOffice is an office suite and has no business trying to get the domain
name IMHO.

This code should be removed and if it does something useful, that something
should be rewritten to not depend on network resources.

-- 
Francois Tigeot


More information about the LibreOffice mailing list