ref: 796c41092aeb76bbbb151b56865b0355080d97c1
parent: 0c036b4d4a5ec309155f44e2620ddced2054b674
author: mischief <[email protected]>
date: Mon Aug 6 04:50:40 EDT 2018
devaoe: fix unit numbering for Qdevlinkdir a side effect of 3c77cd3ae664 changed the unit ordering to start at one, so fix the condition accordingly.
--- a/sys/src/9/port/devaoe.c
+++ b/sys/src/9/port/devaoe.c
@@ -949,7 +949,7 @@
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){