shithub: plan9front

Download patch

ref: 5e59c57bb110403f83a41ad88415e108c6cb1f6a
parent: 4d4b6a19de040a111cca42d518fe0d26c255ceec
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){
--