summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:11 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:11 +0000
commit4b4fd143996c3457677d13309337502aed5f9c81 (patch)
tree82d909a3c512f99fe5528ec2e0800dfb9f243008 /apt-pkg
parent0d47bd084abcb2739c60ce56f2ece2c5a05e7f31 (diff)
Fixed setclosexec
Author: jgg Date: 1998-10-24 22:15:41 GMT Fixed setclosexec
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 3d5c4686b..ad1fcf184 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: fileutl.cc,v 1.11 1998/10/22 04:56:47 jgg Exp $
+// $Id: fileutl.cc,v 1.12 1998/10/24 22:15:41 jgg Exp $
/* ######################################################################
File Utilities
@@ -195,8 +195,10 @@ FileFd::FileFd(string FileName,OpenMode Mode, unsigned long Perms)
if (iFd < 0)
_error->Errno("open","Could not open file %s",FileName.c_str());
else
+ {
this->FileName = FileName;
- SetCloseExec(iFd,true);
+ SetCloseExec(iFd,true);
+ }
}
/*}}}*/
// FileFd::~File - Closes the file /*{{{*/