mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
aa9031fbf4
commit
ae3e89e417
2 changed files with 5 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue