libdraw: open file-descriptor with OCEXEC flag in readcolmap()
This commit is contained in:
parent
1a900513fb
commit
f341ae8c77
1 changed files with 2 additions and 2 deletions
|
@ -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(;;) {
|
||||
|
|
Loading…
Reference in a new issue