afs_dynrootCellInit(void)
{
if (!afs_dynrootCell) {
- afs_int32 cellHosts[MAXCELLHOSTS];
+ afs_int32 cellHosts[AFS_MAXCELLHOSTS];
struct cell *tc;
int code;
c = afs_GetCellByIndex(cellidx, READ_LOCK);
if (!c)
break;
- if (c->cellNum == afs_dynrootCell)
+ if ((c->cellNum == afs_dynrootCell) || (c->states & CHush)) {
+ afs_PutCell(c, READ_LOCK);
continue;
-
+ }
dotLen = strlen(c->cellName) + 2;
dotCell = afs_osi_Alloc(dotLen);
strcpy(dotCell, ".");
c = afs_GetCellByIndex(cellidx, READ_LOCK);
if (!c)
continue;
- if (c->cellNum == afs_dynrootCell)
+ if ((c->cellNum == afs_dynrootCell) || (c->states & CHush)) {
+ afs_PutCell(c, READ_LOCK);
continue;
+ }
dotLen = strlen(c->cellName) + 2;
dotCell = afs_osi_Alloc(dotLen);
#if defined(AFS_SUN510_ENV)
if (crgetruid(acred))
#else
- if (cr_uid(acred))
+ if (afs_cr_uid(acred))
#endif
return EPERM;
{
struct afs_dynSymlink *tps;
- if (cr_uid(acred))
+ if (afs_cr_uid(acred))
return EPERM;
if (afs_CellOrAliasExists(aname))
return EEXIST;