Allow whitespace in home dir on windows.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2004-02-24 03:57:41 +00:00
parent aa9031fbf4
commit ae3e89e417
2 changed files with 5 additions and 14 deletions

View file

@ -1,3 +1,8 @@
2004-02-23 Adam Fedor <fedor@gnu.org>
* Source/NSUser.m (NSHomeDirectoryForUser): Allow whitespace
in user directory (on Windows).
2004-02-21 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPropertyList.m: (GSBinaryPLParser

View file

@ -260,20 +260,6 @@ NSHomeDirectoryForUser(NSString *loginName)
for the user on more modern versions of windoze. */
s = GSStringFromWin32EnvironmentVariable("USERPROFILE");
}
if (s != nil)
{
const char *str = [s cString];
while (*str != '\0')
{
if (isspace(*str))
{
s = nil; // Whitespace not permitted in home directory
break;
}
str++;
}
}
[gnustep_global_lock unlock];
}
if ([s length] == 0 && [loginName length] != 1)