shithub: plan9front

Download patch

ref: bcde2519e2031396fef161416d66695861c3527f
parent: c2762df06f75459cb52510d21db6424ed9b1184a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 18 17:25:25 EST 2022

aux/mouse: use /dev/eia* instead of #t/eia*, should be bound by termrc

--- a/sys/src/cmd/aux/mouse.c
+++ b/sys/src/cmd/aux/mouse.c
@@ -333,12 +333,12 @@
 	for(tries = 0; type == 0 && tries < 6; tries++){
 		if(tries)
 			fprint(2, "%s: Unknown mouse type, retrying...\n", argv0);
-		sprint(buf, "#t/eia%sctl", p);
+		snprint(buf, sizeof buf, "/dev/eia%sctl", p);
 		if((ctl = open(buf, ORDWR)) == -1){
 			fprint(2, "%s: can't open %s - %r\n", argv0, buf);
 			exits("open ctl");
 		}
-		sprint(buf, "#t/eia%s", p);
+		snprint(buf, sizeof buf, "/dev/eia%s", p);
 		if((data = open(buf, ORDWR)) == -1){
 			fprint(2, "%s: can't open %s - %r\n", argv0, buf);
 			exits("open data");