devaoe: fix unit numbering for Qdevlinkdir
a side effect of 3c77cd3ae664 changed the unit ordering to start at one, so fix the condition accordingly.front
parent
0c036b4d4a
commit
796c41092a
|
@ -949,7 +949,7 @@ aoegen(Chan *c, char *, Dirtab *, int, int s, Dir *dp)
|
|||
return unitgen(c, TYPE(c->qid), dp);
|
||||
case Qdevlinkdir:
|
||||
i = UNIT(c->qid);
|
||||
if(i >= Maxunits || i >= units.ref)
|
||||
if(i > Maxunits || i > units.ref)
|
||||
return -1;
|
||||
d = unit2dev(i);
|
||||
if(s == DEVDOTDOT){
|
||||
|
|
Loading…
Reference in New Issue