HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3010fb0
)
Fix the atomic replace.
author
Julian Andres Klode
<jak@debian.org>
Tue, 29 Jun 2010 15:28:33 +0000
(17:28 +0200)
committer
Julian Andres Klode
<jak@debian.org>
Tue, 29 Jun 2010 15:28:33 +0000
(17:28 +0200)
apt-pkg/contrib/fileutl.cc
patch
|
blob
|
blame
|
history
diff --git
a/apt-pkg/contrib/fileutl.cc
b/apt-pkg/contrib/fileutl.cc
index
0b0739c
..
0b62d1b
100644
(file)
--- a/
apt-pkg/contrib/fileutl.cc
+++ b/
apt-pkg/contrib/fileutl.cc
@@
-843,9
+843,9
@@
bool FileFd::Close()
iFd = -1;
if ((Flags & Replace) == Replace) {
- FileName = TemporaryFileName; // for the unlink() below.
if (rename(TemporaryFileName.c_str(), FileName.c_str()) != 0)
Res &= _error->Errno("rename",_("Problem renaming the file"));
+ FileName = TemporaryFileName; // for the unlink() below.
}
if ((Flags & Fail) == Fail && (Flags & DelOnFail) == DelOnFail &&