~kris/9p

9hist

add7a66278559354a835e4e32d8cd2990ba890ee — David du Colombier 32 years ago 674af24
Plan 9 from Bell Labs 1993-10-07
1 files changed, 7 insertions(+), 7 deletions(-)

M port/chan.c
M port/chan.c => port/chan.c +7 -7
@@ 583,16 583,16 @@ namec(char *name, int amode, int omode, ulong perm)
		name = nextelem(name, elem);
	}

	switch(amode){
	switch(amode) {
	case Aaccess:
		if(isdot)
		if(isdot) {
			c = domount(c);
		else {
			nc = walk(c, elem, mntok);
			if(nc == 0)
				error(Enonexist);
			c = nc;
			break;
		}
		nc = walk(c, elem, mntok);
		if(nc == 0)
			error(Enonexist);
		c = nc;
		break;

	case Atodir: