Skip to content

Commit

Permalink
[Server] Fail initialization when incompatible export attributes spec…
Browse files Browse the repository at this point in the history
…ified.
  • Loading branch information
abh3 committed Jun 20, 2020
1 parent 5bef72c commit 647c22b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/XrdOuc/XrdOucExport.cc
Expand Up @@ -196,6 +196,23 @@ XrdOucPList *XrdOucExport::ParsePath(XrdOucStream &Config, XrdSysError &Eroute,
rpval |= XRDEXP_FORCERO;
}

// cache conflicts with mig or purge
//
if ((rpval & XRDEXP_PFCACHE) && (rpval & XRDEXP_MIGPRG))
{Eroute.Emsg("config", "cache attribute is incompatible with "
"mig and purge attributes.");
return 0;
}

// noxattr conflicts with mig or purge
//
if ((rpval & XRDEXP_PFCACHE) && (rpval & XRDEXP_MIGPRG))
{Eroute.Emsg("config", "noxattrs attribute is incompatible with "
"mig and purge attributes.");
return 0;
}


// Update the export list. If this path is being modified, turn off all bits
// in the old path specified in the new path and then set the new bits.
//
Expand Down

0 comments on commit 647c22b

Please sign in to comment.