windows-symlink-dot-dot-20080124
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 24 Jan 2008 15:17:57 +0000 (15:17 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 24 Jan 2008 15:17:57 +0000 (15:17 +0000)
LICENSE MIT

when moving up in the directory tree we search the recorded fid list to
find a matching fid that we have already crossed.  we must also reset
the fid count based upon what we discover.

src/WINNT/afsd/cm_vnodeops.c

index c4fc703..67665c5 100644 (file)
@@ -1937,6 +1937,7 @@ long cm_NameI(cm_scache_t *rootSCachep, char *pathp, long flags,
                             if (!cm_FidCmp(&nscp->fid, &fids[i]))
                                 break;
                         }
+                        fid_count = i+1;
                     } else {
                         /* add the new fid to the list */
                         for ( i=0; i<fid_count; i++) {