libc/arm: open #c/sysstat file with OCEXEC (internal file descriptor)

This commit is contained in:
cinap_lenrek 2020-12-29 19:08:08 +01:00
parent fb08e3655e
commit 97a55e03a7

View file

@ -15,7 +15,7 @@ cpus(void)
char buf[256], *p; char buf[256], *p;
int f, n; int f, n;
f = open("#c/sysstat", OREAD); f = open("#c/sysstat", OREAD|OCEXEC);
if(f < 0) if(f < 0)
return -1; return -1;
n = read(f, buf, sizeof(buf)-1); n = read(f, buf, sizeof(buf)-1);