shithub: plan9front

Download patch

ref: f03556a76343783be1873dc39d57b63e37c07dc1
parent: 0541a434cb9cfd1a776f1ef29de3a8a7aa1d9b99
author: Jacob Moody <moody@posixcafe.org>
date: Thu Aug 4 19:04:24 EDT 2022

rio: show Exit in subrios

--- a/sys/src/cmd/rio/rio.c	Wed Aug  3 07:14:44 2022
+++ b/sys/src/cmd/rio/rio.c	Thu Aug  4 19:04:24 2022
@@ -124,7 +124,7 @@
 	Image *i;
 	Rectangle r;
 
-	if(strstr(argv[0], ".out") == nil){
+	if(access("/dev/wctl", AEXIST) != 0){
 		menu3str[Exit] = nil;
 		Hidden--;
 	}