mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +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
1822b5c9a0
commit
3390fecd01
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>
|
Tue Feb 22 15:03:46 2000 Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
|
||||||
* Headers/Foundation/NSPort.h: Fixed typo: changed `@class
|
* Headers/Foundation/NSPort.h: Fixed typo: changed `@class
|
||||||
|
|
|
@ -265,8 +265,9 @@ NSTemporaryDirectory(void)
|
||||||
if ([manager fileExistsAtPath: tempDirName] == NO)
|
if ([manager fileExistsAtPath: tempDirName] == NO)
|
||||||
{
|
{
|
||||||
NSDictionary *attr;
|
NSDictionary *attr;
|
||||||
|
|
||||||
attr = [NSDictionary dictionaryWithObject: [NSNumber numberWithInt: 0700]
|
attr = [NSDictionary dictionaryWithObject: [NSNumber numberWithInt: 0700]
|
||||||
forKey: NSFilePosixPermissions];
|
forKey: NSFilePosixPermissions];
|
||||||
if ([manager createDirectoryAtPath: tempDirName attributes: attr] == NO)
|
if ([manager createDirectoryAtPath: tempDirName attributes: attr] == NO)
|
||||||
tempDirName = baseTempDirName;
|
tempDirName = baseTempDirName;
|
||||||
}
|
}
|
||||||
|
@ -277,10 +278,10 @@ NSTemporaryDirectory(void)
|
||||||
NSString *
|
NSString *
|
||||||
NSOpenStepRootDirectory(void)
|
NSOpenStepRootDirectory(void)
|
||||||
{
|
{
|
||||||
NSString* root = [[[NSProcessInfo processInfo] environment]
|
NSString *root = [[[NSProcessInfo processInfo] environment]
|
||||||
objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
|
objectForKey: @"GNUSTEP_ROOT"];
|
||||||
|
|
||||||
if (!root)
|
if (root == nil)
|
||||||
#if defined(__WIN32__)
|
#if defined(__WIN32__)
|
||||||
root = @"C:\\";
|
root = @"C:\\";
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue