// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: fileutl.cc,v 1.11 1998/10/22 04:56:47 jgg Exp $
+// $Id: fileutl.cc,v 1.13 1998/10/26 07:11:49 jgg Exp $
/* ######################################################################
File Utilities
// CopyFile - Buffered copy of a file /*{{{*/
// ---------------------------------------------------------------------
/* The caller is expected to set things so that failure causes erasure */
-bool CopyFile(FileFd From,FileFd To)
+bool CopyFile(FileFd &From,FileFd &To)
{
if (From.IsOpen() == false || To.IsOpen() == false)
return false;
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 /*{{{*/