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:
Richard Frith-MacDonald 2012-08-10 08:36:09 +00:00
parent b618b41512
commit 897390797f
10 changed files with 66 additions and 16 deletions

View file

@ -192,7 +192,9 @@ static NSFileManager *mgr = nil;
forKey: NSFilePosixPermissions];
locked = [mgr createDirectoryAtPath: _lockPath
attributes: attributesToSet];
withIntermediateDirectories: YES
attributes: attributesToSet
error: NULL];
if (locked == NO)
{
BOOL dir;
@ -206,7 +208,9 @@ static NSFileManager *mgr = nil;
if ([mgr fileExistsAtPath: _lockPath isDirectory: &dir] == NO)
{
locked = [mgr createDirectoryAtPath: _lockPath
attributes: attributesToSet];
withIntermediateDirectories: YES
attributes: attributesToSet
error: NULL];
if (locked == NO)
{
NSLog(@"Failed to create lock directory '%@' - %@",