summaryrefslogtreecommitdiff
path: root/sys/src/libc/9sys/iounit.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-12-07 14:24:51 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-12-07 14:24:51 +0100
commitf1e15da8f550b12196d57e245437251f6eb289b5 (patch)
tree056e930a518b6e4a5e993fcad133ba4bc9855a01 /sys/src/libc/9sys/iounit.c
parent544bca0290df1dc512641a1ab23e184ccc2406b3 (diff)
libc: open internal file-descriptor with OCEXEC flag
Diffstat (limited to 'sys/src/libc/9sys/iounit.c')
-rw-r--r--sys/src/libc/9sys/iounit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libc/9sys/iounit.c b/sys/src/libc/9sys/iounit.c
index 194b17173..02ee77ee4 100644
--- a/sys/src/libc/9sys/iounit.c
+++ b/sys/src/libc/9sys/iounit.c
@@ -13,7 +13,7 @@ iounit(int fd)
char buf[128], *args[10];
snprint(buf, sizeof buf, "#d/%dctl", fd);
- cfd = open(buf, OREAD);
+ cfd = open(buf, OREAD|OCEXEC);
if(cfd < 0)
return 0;
i = read(cfd, buf, sizeof buf-1);