diff --git a/Source/NSDistributedLock.m b/Source/NSDistributedLock.m index 4c9c49b69..ab2956321 100644 --- a/Source/NSDistributedLock.m +++ b/Source/NSDistributedLock.m @@ -135,7 +135,7 @@ if ([fileManager fileExistsAtPath: lockPath isDirectory: &dir] == NO) { locked = [fileManager createDirectoryAtPath: lockPath - attributes: attributes]; + attributes: attributesToSet]; if (locked == NO) { NSLog(@"Failed to create lock directory '%@' - %s",