~kris/9p

9hist

8301d03ab7936c8bb378904304d789560c3416da — David du Colombier 29 years ago 7151c25
Plan 9 from Bell Labs 1997-08-13
1 files changed, 2 insertions(+), 0 deletions(-)

M port/chan.c
M port/chan.c => port/chan.c +2 -0
@@ 393,6 393,7 @@ walk(Chan *ac, char *name, int domnt)
		dotdot = 1;
	}

	ac->flag &= ~CCREATE;	/* not inherited through a walk */
	if(devtab[ac->type]->walk(ac, name) != 0) {
		if(dotdot)
			ac = undomount(ac);


@@ 416,6 417,7 @@ walk(Chan *ac, char *name, int domnt)
	}
	for(f = ac->mnt; f; f = f->next) {
		c = cclone(f->to, 0);
		c->flag &= ~CCREATE;	/* not inherited through a walk */
		if(devtab[c->type]->walk(c, name) != 0)
			break;
		cclose(c);