git: 9front

Download patch

ref: eeb2f4fddf94dcb4b08c8fb02a880765cd239467
parent: 18f3d3e1242c6782c3949a665a859920bbd7725b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Dec 7 09:54:27 EST 2020

lib9p: open internal file-descriptor with OCEXEC flag in getremotesys()

--- a/sys/src/lib9p/listen.c
+++ b/sys/src/lib9p/listen.c
@@ -100,7 +100,7 @@
 
 	snprint(buf, sizeof buf, "%s/remote", ndir);
 	sys = nil;
-	fd = open(buf, OREAD);
+	fd = open(buf, OREAD|OCEXEC);
 	if(fd >= 0){
 		n = read(fd, buf, sizeof(buf)-1);
 		if(n>0){
--