libdraw: open file-descriptor with OCEXEC flag in readcolmap()

This commit is contained in:
cinap_lenrek 2020-12-07 16:30:27 +01:00
parent 1a900513fb
commit f341ae8c77

View file

@ -27,8 +27,8 @@ readcolmap(Display *d, RGB *colmap)
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(;;) {