summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-01-19 09:05:58 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2012-01-19 09:05:58 +0100
commit76dbf3cee365788eb7291c96f06b73a3769946d6 (patch)
tree96a77342412f666dac44b7db9285d859305c76f0 /apt-pkg/contrib/fileutl.h
parente08e66ca82147b72454964fdd624002f9b23290e (diff)
parent0d5603b886f67562c105b03820c595ac7ae3451a (diff)
merged from the debian-experimental2 branch
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-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;};