git: 9front

Download patch

ref: 62f81a0020bc9e170e5fdf9c274adbf67fb31738
parent: c1326b376f0fadef81ab1cd3b7113af0644235d5
author: aiju <aiju@phicode.de>
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;
--