Skip to content

Commit

Permalink
Make sure lock file is updated in runmodeold context.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jun 2, 2016
1 parent 745bcb7 commit 23c790b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdFrm/XrdFrmTransfer.cc
Expand Up @@ -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))
Expand Down

0 comments on commit 23c790b

Please sign in to comment.