hostname fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38194 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2014-11-21 17:41:44 +00:00
parent 2bc684f765
commit 5b389481e6
2 changed files with 2 additions and 2 deletions

View file

@ -1762,7 +1762,7 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
{
exit(0);
}
host = RETAIN([[NSHost currentHost] name]);
host = RETAIN([[NSHost currentHost] wellKnownName]);
clients = [[NSMutableArray alloc] initWithCapacity: 10];
launches = [[NSMutableDictionary alloc] initWithCapacity: 10];
launching = [[NSMutableSet alloc] initWithCapacity: 10];

View file

@ -770,7 +770,7 @@ static BOOL commandIsRepeat (NSString *string)
}
if (nil != (host = [NSHost controlWellKnownName]))
{
host = [[NSHost hostWithWellKnownName: host] name];
host = [[NSHost hostWithWellKnownName: host] wellKnownName];
}
if (nil == host)
{