]> git.saurik.com Git - apt.git/commitdiff
Fixed setclosexec
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:51:11 +0000 (16:51 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:51:11 +0000 (16:51 +0000)
Author: jgg
Date: 1998-10-24 22:15:41 GMT
Fixed setclosexec

apt-pkg/contrib/fileutl.cc

index 3d5c4686b0d2ac4b28d9375389ceb478dffaa589..ad1fcf18425def60e3e8eb1d0d9599b17e487510 100644 (file)
@@ -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                                     /*{{{*/