From 3390fecd018e8f61d4dd84a66111edbc0498ddf8 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 24 Feb 2000 09:26:19 +0000 Subject: [PATCH] Fix for changed root directory git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6091 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/NSUser.m | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index fa22fe6b2..e0ca3c944 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 24 08:30:00 2000 Richard Frith-Macdonald + + * Source/NSUser.m: NSOpenStepRootDirectory() use GNUSTEP_ROOT + Tue Feb 22 15:03:46 2000 Nicola Pero * Headers/Foundation/NSPort.h: Fixed typo: changed `@class diff --git a/Source/NSUser.m b/Source/NSUser.m index 9e4674341..34d27d12d 100644 --- a/Source/NSUser.m +++ b/Source/NSUser.m @@ -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