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:
db0e248
)
call fdopen() after FileFd was checked
author
Michael Vogt
<mvo@debian.org>
Thu, 25 Jul 2013 18:36:23 +0000
(20:36 +0200)
committer
Michael Vogt
<mvo@debian.org>
Thu, 25 Jul 2013 18:36:23 +0000
(20:36 +0200)
apt-pkg/indexcopy.cc
patch
|
blob
|
blame
|
history
diff --git
a/apt-pkg/indexcopy.cc
b/apt-pkg/indexcopy.cc
index
1d61b97
..
a2adb2d
100644
(file)
--- a/
apt-pkg/indexcopy.cc
+++ b/
apt-pkg/indexcopy.cc
@@
-714,9
+714,9
@@
bool TranslationsCopy::CopyTranslations(string CDROM,string Name, /*{{{*/
} else {
Target.Open(TargetF,FileFd::WriteAtomic);
}
- FILE *TargetFl = fdopen(dup(Target.Fd()),"w");
if (_error->PendingError() == true)
return false;
+ FILE *TargetFl = fdopen(dup(Target.Fd()),"w");
if (TargetFl == 0)
return _error->Errno("fdopen","Failed to reopen fd");