aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pserve.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-03-03 16:34:49 +0000
committerrsc <devnull@localhost>2006-03-03 16:34:49 +0000
commitb5c7be2fd69c027f5de9772e117885cb1c89f907 (patch)
tree29a86fbdf95bb0a8823cdafd3819ac90cc5106d6 /src/cmd/9pserve.c
parent1190a7aa7a1dba5964688c4bb8ee09fc8930c488 (diff)
downloadplan9port-b5c7be2fd69c027f5de9772e117885cb1c89f907.tar.gz
plan9port-b5c7be2fd69c027f5de9772e117885cb1c89f907.tar.bz2
plan9port-b5c7be2fd69c027f5de9772e117885cb1c89f907.zip
change Tcreate message in 9P2000.u
Diffstat (limited to 'src/cmd/9pserve.c')
-rw-r--r--src/cmd/9pserve.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c
index 01a9f86d..06c95f55 100644
--- a/src/cmd/9pserve.c
+++ b/src/cmd/9pserve.c
@@ -449,6 +449,12 @@ connthread(void *arg)
}
m->afid->ref++;
break;
+ case Tcreate:
+ if(dotu && !c->dotu && (m->tx.perm&(DMSYMLINK|DMDEVICE|DMNAMEDPIPE|DMSOCKET))){
+ err(m, "unsupported file type");
+ continue;
+ }
+ goto caseTopen;
case Topenfd:
if(m->tx.mode&~(OTRUNC|3)){
err(m, "bad openfd mode");
@@ -458,7 +464,7 @@ connthread(void *arg)
m->tx.type = Topen;
m->tpkt[4] = Topen;
/* fall through */
- case Tcreate:
+ caseTopen:
case Topen:
case Tclunk:
case Tread: