diff --git a/src/XrdFrm/XrdFrmTransfer.cc b/src/XrdFrm/XrdFrmTransfer.cc index c419ff36501..fe60eaa6566 100644 --- a/src/XrdFrm/XrdFrmTransfer.cc +++ b/src/XrdFrm/XrdFrmTransfer.cc @@ -767,7 +767,7 @@ void XrdFrmTransfer::ThrowDone(XrdFrmTranChk *cP, time_t endTime) } else { struct stat Stat; strcpy(&xfrP->PFN[xfrP->pfnEnd], ".lock"); - if (stat(xfrP->PFN, &Stat)) + if (!stat(xfrP->PFN, &Stat)) {struct utimbuf tbuff; tbuff.actime = tbuff.modtime = endTime; if (utime(xfrP->PFN, &tbuff))