ref: b506c6489bfcb2dcaa8a99b8f1f574688b3cffc5
parent: 652a6417046de7d102a1520fee11a30d91ad7f2f
author: cinap_lenrek <[email protected]>
date: Mon Jul 27 21:24:02 EDT 2015
lib9p: return "write prohibited" error as documented in 9p(2) when srv->write is nil (thanks silasm)
--- a/sys/src/lib9p/srv.c
+++ b/sys/src/lib9p/srv.c
@@ -558,7 +558,7 @@
if(srv->write)
srv->write(r);
else
- respond(r, "no srv->write");
+ respond(r, Enowrite);
}
static void
rwrite(Req *r, char *error)