mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +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
|
@ -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 '%@' - %@",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue