Fix for NSHost argument specifying local host.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13512 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-04-19 05:54:35 +00:00
parent e60f9af9e8
commit 93778349b2
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-04-19 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/gpbs.m: If given -NSHost specification for the current host,
ignore it and use the standard name.
2002-04-15 Gregory John Casamento <greg_casamento@yahoo.com>
* configure.in: Added check to determine if libXft contains
XftDrawStringUtf8 which is used to draw unicode strings.

View file

@ -1130,7 +1130,8 @@ main(int argc, char** argv, char **env)
object: (id)conn];
hostname = [[NSUserDefaults standardUserDefaults] stringForKey: @"NSHost"];
if ([hostname length] == 0)
if ([hostname length] == 0
|| [[NSHost hostWithName: hostname] isEqual: [NSHost currentHost]] == YES)
{
if ([conn registerName: PBSNAME] == NO)
{