ref: f341ae8c777dda2876beb4d4a1c67c4e920595ca
parent: 1a900513fb137143e1c1f8177975952bc404f5a9
author: cinap_lenrek <[email protected]>
date: Mon Dec 7 11:30:27 EST 2020
libdraw: open file-descriptor with OCEXEC flag in readcolmap()
--- a/sys/src/libdraw/readcolmap.c
+++ b/sys/src/libdraw/readcolmap.c
@@ -27,8 +27,8 @@
USED(screen);
sprint(buf, "/dev/draw/%d/colormap", d->dirno);
- b = Bopen(buf, OREAD);
- if(b == 0)
+ b = Bopen(buf, OREAD|OCEXEC);
+ if(b == nil)
drawerror(d, "rdcolmap: can't open colormap device");
for(;;) {