windows-dot-dir-part-two-20060906

cm_LookupInternal can return the input stat cache entry when the name
is "."

the DNLC should not cache "." or ".."
This commit is contained in:
Jeffrey Altman 2006-09-06 18:19:36 +00:00
parent f47b934c13
commit a63d753df8
2 changed files with 7 additions and 1 deletions

View File

@ -114,7 +114,10 @@ cm_dnlcEnter ( cm_scache_t *adp,
if (!cm_useDnlc)
return ;
if (!strcmp(aname,".") || !strcmp(aname,".."))
return ;
if ( cm_debugDnlc )
osi_Log3(afsd_logp,"cm_dnlcEnter dir %x name %s scache %x",
adp, osi_LogSaveString(afsd_logp,aname), avc);

View File

@ -1092,6 +1092,9 @@ long cm_LookupInternal(cm_scache_t *dscp, char *namep, long flags, cm_user_t *us
return CM_ERROR_NOSUCHVOLUME;
rock.fid = dscp->dotdotFid;
goto haveFid;
} else if (strcmp(namep, ".") == 0) {
rock.fid = dscp->fid;
goto haveFid;
}
memset(&rock, 0, sizeof(rock));