shithub: riscv

Download patch

ref: ed3ae3faa3cbb9171890d6c963a8d86cdeffd96b
parent: c86a9608806b7d6bc95b68f1baa2e32451fd6ca8
author: cinap_lenrek <[email protected]>
date: Mon Dec 7 09:23:23 EST 2020

rio: open /dev/snarf with OCEXEC flag when writing

--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -244,7 +244,7 @@
 
 	if(snarffd<0 || nsnarf==0)
 		return;
-	fd = open("/dev/snarf", OWRITE);
+	fd = open("/dev/snarf", OWRITE|OCEXEC);
 	if(fd < 0)
 		return;
 	/* snarf buffer could be huge, so fprint will truncate; do it in blocks */