summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <egon@debian-devbox>2012-01-18 10:22:39 +0100
committerMichael Vogt <egon@debian-devbox>2012-01-18 10:22:39 +0100
commita97c2991ab68ef77abdd5a13a1f49f08fa2755ff (patch)
treeaf9bd4e8a3cab104e3933e64e210e855253daed7 /apt-pkg
parent85e1885525977809ff6a3b70abb84d3a63e41817 (diff)
parentd0254ba7ea3f3de175d11cdc877cc4350692ba4a (diff)
* apt-pkg/contrib/fileutils.h:
- fix segfault from python-apt testsuite
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h
index 147535df1..3814cfe44 100644
--- a/apt-pkg/contrib/fileutl.h
+++ b/apt-pkg/contrib/fileutl.h
@@ -115,7 +115,7 @@ class FileFd
// Simple manipulators
inline int Fd() {return iFd;};
- inline void Fd(int fd) {iFd = fd;};
+ inline void Fd(int fd) { OpenDescriptor(fd, ReadWrite);};
__deprecated gzFile gzFd();
inline bool IsOpen() {return iFd >= 0;};