mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
preparation for osx compatibility fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35390 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b618b41512
commit
897390797f
10 changed files with 66 additions and 16 deletions
|
@ -682,7 +682,10 @@ static void ExtractValuesFromConfig(NSDictionary *config)
|
|||
if ([manager fileExistsAtPath: path isDirectory: &flag] == NO
|
||||
|| flag == NO)
|
||||
{
|
||||
[manager createDirectoryAtPath: path attributes: attr];
|
||||
[manager createDirectoryAtPath: path
|
||||
withIntermediateDirectories: YES
|
||||
attributes: attr
|
||||
error: NULL];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2005,7 +2008,9 @@ NSTemporaryDirectory(void)
|
|||
attr = [NSDictionary dictionaryWithObject: p
|
||||
forKey: NSFilePosixPermissions];
|
||||
if ([manager createDirectoryAtPath: tempDirName
|
||||
attributes: attr] == NO)
|
||||
withIntermediateDirectories: YES
|
||||
attributes: attr
|
||||
error: NULL] == NO)
|
||||
{
|
||||
NSWarnFLog(@"Attempt to create a secure temporary"
|
||||
@" directory (%@) failed.", tempDirName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue