rio: open /dev/snarf with OCEXEC flag when writing
This commit is contained in:
parent
c86a960880
commit
ed3ae3faa3
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue