mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
f47b934c13
commit
a63d753df8
@ -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);
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user