https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c8
Dr. Werner Fink changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |WORKSFORME
--- Comment #8 from Dr. Werner Fink 2010-12-07 16:08:11 UTC ---
Read the source that is bash-4.1/shell.c line 1660 ff
static void
shell_initialize ()
{
[...]
/* It's highly unlikely that this will change. */
if (current_host_name == 0)
{
/* Initialize current_host_name. */
if (gethostname (hostname, 255) < 0)
current_host_name = "??host??";
else
current_host_name = savestring (hostname);
}
[...]
}
and bash-4.1/variables.c line 601 ff
static void
set_machine_vars ()
{
SHELL_VAR *temp_var;
temp_var = set_if_not ("HOSTTYPE", HOSTTYPE);
temp_var = set_if_not ("OSTYPE", OSTYPE);
temp_var = set_if_not ("MACHTYPE", MACHTYPE);
temp_var = set_if_not ("HOSTNAME", current_host_name);
}
and I'll not gona changes this.
Do not reopen this again as I will not change this as upstream
will not change this. Fix your network setup that is that
gethostname() will not report ``localhost'' anymore. This would
be a SuSE specific patch and this will not happen here.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.