diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-02 11:56:54 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-02 11:56:54 +0200 |
commit | 57539d9e0512081f18267d125d9d1257b238e7c9 (patch) | |
tree | 36e6182eff8a01302b587ca29062ceae6bcb4078 /apt-inst/contrib | |
parent | 5b28c8040795b53a4df54f33e57976720558ed32 (diff) | |
download | apt-57539d9e0512081f18267d125d9d1257b238e7c9.tar.gz |
* apt-inst/contrib/extracttar.cc:
- fix fd leak for zero size files
Diffstat (limited to 'apt-inst/contrib')
-rw-r--r-- | apt-inst/contrib/extracttar.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-inst/contrib/extracttar.cc b/apt-inst/contrib/extracttar.cc index 8a535967f..68c871a5d 100644 --- a/apt-inst/contrib/extracttar.cc +++ b/apt-inst/contrib/extracttar.cc @@ -332,7 +332,7 @@ bool ExtractTar::Go(pkgDirStream &Stream) } // And finish up - if (Itm.Size != 0 && BadRecord == false) + if (Itm.Size >= 0 && BadRecord == false) if (Stream.FinishedFile(Itm,Fd) == false) return false; |