git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37757 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2014-03-19 08:26:48 +00:00
parent 88d1b8fd99
commit 5244db9446
4 changed files with 14 additions and 7 deletions

View file

@ -877,7 +877,7 @@ failure:
{
if (useAuxiliaryFile)
{
return [self writeToFile: path options: NSAtomicWrite error: 0];
return [self writeToFile: path options: NSDataWritingAtomic error: 0];
}
else
{
@ -889,7 +889,7 @@ failure:
{
if (flag)
{
return [self writeToURL: anURL options: NSAtomicWrite error: 0];
return [self writeToURL: anURL options: NSDataWritingAtomic error: 0];
}
else
{
@ -1328,7 +1328,7 @@ failure:
BOOL useAuxiliaryFile = NO;
BOOL error_BadPath = YES;
if (writeOptionsMask & NSAtomicWrite)
if (writeOptionsMask & NSDataWritingAtomic)
{
useAuxiliaryFile = YES;
}

View file

@ -5352,7 +5352,7 @@ static NSFileManager *fm = nil;
return NO;
}
return [d writeToFile: path
options: atomically ? NSAtomicWrite : 0
options: atomically ? NSDataWritingAtomic : 0
error: error];
}
@ -5387,7 +5387,7 @@ static NSFileManager *fm = nil;
return NO;
}
return [d writeToURL: url
options: atomically ? NSAtomicWrite : 0
options: atomically ? NSDataWritingAtomic : 0
error: error];
}