// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: fileutl.cc,v 1.23 1999/03/16 00:43:55 jgg Exp $
+// $Id: fileutl.cc,v 1.26 1999/03/21 07:24:14 jgg Exp $
/* ######################################################################
File Utilities
if (Size > 64000)
ToRead = 64000;
- if (To.Read(Buf,ToRead) == false ||
+ if (From.Read(Buf,ToRead) == false ||
To.Write(Buf,ToRead) == false)
{
delete [] Buf;
fl.l_len = 0;
if (fcntl(FD,F_SETLK,&fl) == -1)
{
+ if (errno == ENOLCK)
+ {
+ _error->Warning("Not using locking for nfs mounted lock file %s",File.c_str());
+ return true;
+ }
if (Errors == true)
_error->Errno("open","Could not get lock %s",File.c_str());
close(FD);