Use sensible domain name (the DNS one) when guessing ident information
commitadc3dbca1aed4e8b25dd9b77463bbe87f7e86b94
authorPetr Baudis <pasky@suse.cz>
Fri, 21 Oct 2005 01:57:39 +0000 (21 03:57 +0200)
committerJunio C Hamano <junkio@cox.net>
Fri, 21 Oct 2005 05:32:07 +0000 (20 22:32 -0700)
treed0c32a64faaf7843d6624882f775e7f66416b5c7
parent4eba0f3763e2f4bbf614c99ae3a5b299e8d61aff
Use sensible domain name (the DNS one) when guessing ident information

Currently, the code would use getdomainname() call, which however returns
something usually unset and not necessarily related at all to the DNS
domain name (it seems to be mostly some scary NIS/YP thing).

This patch changes the code to actually use the DNS domain name, which is
also what tends to be used in emails, and we aim at emails with our ident
code.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
ident.c