]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-symlink-dot-dot-20080124
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 24 Jan 2008 15:20:46 +0000 (15:20 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 24 Jan 2008 15:20:46 +0000 (15:20 +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.

(cherry picked from commit 16a90b2f8dfe875991bca0dee516c531fcc3aeee)

src/WINNT/afsd/cm_vnodeops.c

index 38e3034d8c20d854a0a9ef3dde0d4b60df45a891..7bc7c565dc57712247dacc55526595d530ca6a45 100644 (file)
@@ -1939,6 +1939,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++) {