diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-07 14:23:23 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-07 14:23:23 +0100 |
commit | ed3ae3faa3cbb9171890d6c963a8d86cdeffd96b (patch) | |
tree | a1213f08521d81f87d0c6bc525dafa84476cabba | |
parent | c86a9608806b7d6bc95b68f1baa2e32451fd6ca8 (diff) | |
download | plan9front-ed3ae3faa3cbb9171890d6c963a8d86cdeffd96b.tar.xz |
rio: open /dev/snarf with OCEXEC flag when writing
-rw-r--r-- | sys/src/cmd/rio/rio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c index f02c278ed..a28fb2ccc 100644 --- a/sys/src/cmd/rio/rio.c +++ b/sys/src/cmd/rio/rio.c @@ -244,7 +244,7 @@ putsnarf(void) 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 */ |