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);
|
USED(screen);
|
||||||
|
|
||||||
sprint(buf, "/dev/draw/%d/colormap", d->dirno);
|
sprint(buf, "/dev/draw/%d/colormap", d->dirno);
|
||||||
b = Bopen(buf, OREAD);
|
b = Bopen(buf, OREAD|OCEXEC);
|
||||||
if(b == 0)
|
if(b == nil)
|
||||||
drawerror(d, "rdcolmap: can't open colormap device");
|
drawerror(d, "rdcolmap: can't open colormap device");
|
||||||
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
|
|
Loading…
Reference in a new issue