ref: 827c9d7d9fe613c129cec13dc843516a4b55582d
parent: 42656f38efa50235c363ab1522021cf6726b8e93
author: aiju <[email protected]>
date: Thu Jun 7 20:00:37 EDT 2012
btc/httpfs: fixed bug
--- a/sys/src/cmd/btc/fs.c
+++ b/sys/src/cmd/btc/fs.c
@@ -133,7 +133,9 @@
d = entr + (int)req->fid->qid.path;
switch(req->ifcall.mode & 3){
case OREAD:
- if(d->str == nil && (req->fid->qid.type & QTDIR) == 0)
+ if((req->fid->qid.type & QTDIR) != 0)
+ break;
+ if(d->str == nil)
goto noperm;
reqqueuepush(queue, req, btcopenread);
return;