summaryrefslogtreecommitdiff
path: root/sys/src/9/port/chan.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-07-28 09:52:21 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-07-28 09:52:21 +0200
commit4bd9ed80c379d0f531a8fc8e8307dea36df0c8c0 (patch)
treec3dee1e6b67aff6d8ae53c93c1bd48ee2d638693 /sys/src/9/port/chan.c
parent311a99e23b2f1adcf01a91db3e551dc1dda9f61a (diff)
kernel: export mntattach() from devmnt.c avoiding bogus struct passing and special case in namec()
we already export mntauth() and mntversion(), so why not stop being sneaky and just export mntattach() so bindmount() and devshr can just call it directly with proper arguments being checked. we can also avoid handling #M attach specially in namec() by having the devmnt's attach function do error(Enoattach).
Diffstat (limited to 'sys/src/9/port/chan.c')
-rw-r--r--sys/src/9/port/chan.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/src/9/port/chan.c b/sys/src/9/port/chan.c
index 82529ff3e..373c3b4cb 100644
--- a/sys/src/9/port/chan.c
+++ b/sys/src/9/port/chan.c
@@ -1399,8 +1399,6 @@ namec(char *aname, int amode, int omode, ulong perm)
*/
n = chartorune(&r, up->genbuf+1)+1;
/* actually / is caught by parsing earlier */
- if(utfrune("M", r) != nil)
- error(Enoattach);
if(up->pgrp->noattach && utfrune("|decp", r)==nil)
error(Enoattach);
t = devno(r, 1);