windows-afsd-symlink-to-dot-20070213

FIXES 53878

When parsing a path containing a symlink to ".", do not short circuit
the evaluation.  Allow cm_Lookup to do its job.  Its slower but correct.
This commit is contained in:
Jeffrey Altman 2007-02-13 05:45:47 +00:00
parent 111100732f
commit 4d5138c403

View File

@ -1655,14 +1655,6 @@ long cm_NameI(cm_scache_t *rootSCachep, char *pathp, long flags,
* is a symlink, we have more to do.
*/
*cp++ = 0; /* add null termination */
if (!strcmp(".",component)) {
code = 0;
if (dirScp) {
cm_ReleaseSCache(dirScp);
dirScp = NULL;
}
break;
}
extraFlag = 0;
if ((flags & CM_FLAG_DIRSEARCH) && tc == 0)
extraFlag = CM_FLAG_NOMOUNTCHASE;