mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
|
@ -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…
Add table
Add a link
Reference in a new issue