From 8301d03ab7936c8bb378904304d789560c3416da Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 13 Aug 1997 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1997-08-13 --- port/chan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/port/chan.c b/port/chan.c index 8fae0a5ccb0920f02cc9d8af761e9d59705a7831..04e4bc67fd1d2cfabc502f051b564bf117ec568e 100644 --- a/port/chan.c +++ b/port/chan.c @@ -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);