git: 9front

Download patch

ref: 10e1925d20d0c01913b989f42d901f39558689f6
parent: d470d6dc0691641b06dd6159081a08f2131e2e86
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Dec 7 12:18:33 EST 2020

libcomplete: open internal file-descriptor with OCEXEC flag

--- a/sys/src/libcomplete/complete.c
+++ b/sys/src/libcomplete/complete.c
@@ -53,7 +53,7 @@
 		return nil;
 	}
 
-	fd = open(dir, OREAD);
+	fd = open(dir, OREAD|OCEXEC);
 	if(fd < 0)
 		return nil;
 
--