git: 9front

Download patch

ref: 476825f147df2a6bb07903aa35937e70c03a8d09
parent: 8749bcf34cd29eb5faa453117344b51acebd7a40
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
+++ b/sys/src/cmd/rio/rio.c
@@ -124,7 +124,7 @@
 	Image *i;
 	Rectangle r;
 
-	if(strstr(argv[0], ".out") == nil){
+	if(access("/dev/wctl", AEXIST) != 0){
 		menu3str[Exit] = nil;
 		Hidden--;
 	}
--