(init_system_name): If domain is null, don't add a period.
This commit is contained in:
parent
971e48caaa
commit
9b80a5aa02
1 changed files with 1 additions and 1 deletions
|
@ -2324,7 +2324,7 @@ init_system_name ()
|
|||
strcpy (fqdn, hostname);
|
||||
if (domain[0] == '.')
|
||||
strcpy (fqdn + hostlen, domain);
|
||||
else
|
||||
else if (domain[0] != 0)
|
||||
{
|
||||
fqdn[hostlen] = '.';
|
||||
strcpy (fqdn + hostlen + 1, domain);
|
||||
|
|
Loading…
Add table
Reference in a new issue