diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 20d60400dcb..27e90349cb6 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -2433,7 +2433,9 @@ init_system_name () | |||
| 2433 | /* We still don't have a fully qualified domain name. | 2433 | /* We still don't have a fully qualified domain name. |
| 2434 | Try to find one in the list of alternate names */ | 2434 | Try to find one in the list of alternate names */ |
| 2435 | char **alias = hp->h_aliases; | 2435 | char **alias = hp->h_aliases; |
| 2436 | while (*alias && !index (*alias, '.')) | 2436 | while (*alias |
| 2437 | && (!index (*alias, '.') | ||
| 2438 | || !strcmp (*alias, "localhost.localdomain"))) | ||
| 2437 | alias++; | 2439 | alias++; |
| 2438 | if (*alias) | 2440 | if (*alias) |
| 2439 | fqdn = *alias; | 2441 | fqdn = *alias; |