btc/httpfs: fixed bug
This commit is contained in:
parent
42656f38ef
commit
827c9d7d9f
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ btcopen(Req *req)
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue