Skip to content

Commit

Permalink
[Proxy] Do not fail a TPC fstat() due to bad timing.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Mar 8, 2018
1 parent 597cb98 commit fe4606a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/XrdPss/XrdPss.cc
Expand Up @@ -880,7 +880,9 @@ int XrdPssFile::Fstat(struct stat *buff)
{
if (fd < 0)
{if (!tpcPath) return -XRDOSS_E8004;
return XrdProxySS.Stat(tpcPath, buff);
if (!XrdProxySS.Stat(tpcPath, buff))
memset(buff, 0, sizeof(struct stat));
return XrdOssOK;
}

return (XrdPosixXrootd::Fstat(fd, buff) ? -errno : XrdOssOK);
Expand Down

0 comments on commit fe4606a

Please sign in to comment.