mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
fix for bug #41626
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37757 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
88d1b8fd99
commit
5244db9446
4 changed files with 14 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue