diff --git a/sys/src/cmd/walk.c b/sys/src/cmd/walk.c index 6a8c4c441..ec7636983 100644 --- a/sys/src/cmd/walk.c +++ b/sys/src/cmd/walk.c @@ -307,11 +307,10 @@ seen(Dir *dir) int i; Cache *c; - c = &cache[(dir->qid.path^dir->qid.vers)&(NCACHE-1)]; + c = &cache[dir->qid.path&(NCACHE-1)]; dp = c->cache; for(i=0; in; i++, dp++) if(dir->qid.path == dp->qid.path && - dir->qid.vers == dp->qid.vers && dir->type == dp->type && dir->dev == dp->dev) return 1;