rio: open /dev/snarf with OCEXEC flag when writing

This commit is contained in:
cinap_lenrek 2020-12-07 14:23:23 +01:00
parent c86a960880
commit ed3ae3faa3

View file

@ -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 */