shithub: riscv

Download patch

ref: 1bb96d542cd43a027934ca372e0ab8c87f523db9
parent: 383a2ca79be58cb18f4df9ddc721e8c416e72373
author: cinap_lenrek <[email protected]>
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;