mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix for changed root directory
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6091 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a65b0ddec9
commit
97f7625156
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Feb 24 08:30:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSUser.m: NSOpenStepRootDirectory() use GNUSTEP_ROOT
|
||||
|
||||
Tue Feb 22 15:03:46 2000 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* Headers/Foundation/NSPort.h: Fixed typo: changed `@class
|
||||
|
|
|
@ -265,8 +265,9 @@ NSTemporaryDirectory(void)
|
|||
if ([manager fileExistsAtPath: tempDirName] == NO)
|
||||
{
|
||||
NSDictionary *attr;
|
||||
|
||||
attr = [NSDictionary dictionaryWithObject: [NSNumber numberWithInt: 0700]
|
||||
forKey: NSFilePosixPermissions];
|
||||
forKey: NSFilePosixPermissions];
|
||||
if ([manager createDirectoryAtPath: tempDirName attributes: attr] == NO)
|
||||
tempDirName = baseTempDirName;
|
||||
}
|
||||
|
@ -277,10 +278,10 @@ NSTemporaryDirectory(void)
|
|||
NSString *
|
||||
NSOpenStepRootDirectory(void)
|
||||
{
|
||||
NSString* root = [[[NSProcessInfo processInfo] environment]
|
||||
objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
|
||||
NSString *root = [[[NSProcessInfo processInfo] environment]
|
||||
objectForKey: @"GNUSTEP_ROOT"];
|
||||
|
||||
if (!root)
|
||||
if (root == nil)
|
||||
#if defined(__WIN32__)
|
||||
root = @"C:\\";
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue