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

front
cinap_lenrek 2020-12-29 19:08:08 +01:00
parent fb08e3655e
commit 97a55e03a7
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ cpus(void)
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);