diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c index 02214f59..855a811e 100644 --- a/compositor/compositor-drm.c +++ b/compositor/compositor-drm.c @@ -322,7 +322,7 @@ init_egl(struct drm_compositor *ec, struct udev_device *device) }; filename = udev_device_get_devnode(device); - fd = open(filename, O_RDWR, O_CLOEXEC); + fd = open(filename, O_RDWR | O_CLOEXEC); if (fd < 0) { /* Probably permissions error */ fprintf(stderr, "couldn't open %s, skipping\n",