From 93778349b218b37be04b0e5f0ba1d3c2764f9e3a Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Fri, 19 Apr 2002 05:54:35 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Tools/gpbs.m | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4fdb3fa..636c5d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-19 Richard Frith-Macdonald + + * Tools/gpbs.m: If given -NSHost specification for the current host, + ignore it and use the standard name. + 2002-04-15 Gregory John Casamento * configure.in: Added check to determine if libXft contains XftDrawStringUtf8 which is used to draw unicode strings. diff --git a/Tools/gpbs.m b/Tools/gpbs.m index 25355e4..508ebd7 100644 --- a/Tools/gpbs.m +++ b/Tools/gpbs.m @@ -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) {