ref: 97a55e03a7b8e527bb00a1ba07860e223c65676f
parent: fb08e3655ee2f6f3e84139ab4dd51529bda055c9
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Dec 29 14:08:08 EST 2020
libc/arm: open #c/sysstat file with OCEXEC (internal file descriptor)
--- a/sys/src/libc/arm/lock.c
+++ b/sys/src/libc/arm/lock.c
@@ -15,7 +15,7 @@
char buf[256], *p;
int f, n;
- f = open("#c/sysstat", OREAD);
+ f = open("#c/sysstat", OREAD|OCEXEC);
if(f < 0)
return -1;
n = read(f, buf, sizeof(buf)-1);