shithub: riscv

Download patch

ref: 52a367f3ea8b6fa256b2a9b0e52c5c2d557a9fc3
parent: f7ae890ecb7c90cac69051816211c0cc97cd4c7c
author: cinap_lenrek <[email protected]>
date: Sun Apr 18 12:20:04 EDT 2021

devloopback: fix wrong device character (thanks romano)

devloopback was changed from using #X to #λ awhile ago; one bit was missed.

--- a/sys/src/9/port/devloopback.c
+++ b/sys/src/9/port/devloopback.c
@@ -189,7 +189,7 @@
 		switch(type){
 		case Qtopdir:
 		case Qloopdir:
-			snprint(up->genbuf, sizeof(up->genbuf), "#X%ld", c->dev);
+			snprint(up->genbuf, sizeof(up->genbuf), "#λ%ld", c->dev);
 			mkqid(&qid, QID(0, Qtopdir), 0, QTDIR);
 			devdir(c, qid, up->genbuf, 0, eve, 0555, dp);
 			break;