diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-05-18 11:23:00 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-06-19 09:52:17 -0400 |
commit | c3a06e330b7e55e1daeefbb5c16a075c80233bb0 (patch) | |
tree | ca6400a4442023bd7d28d9abac8dad6bd4f909b2 | |
parent | 662273397c537d031e1aee7c607c925ec6bb2d10 (diff) |
xfree86: Fix O_CLOEXEC usage in lnx_platform
It was passing O_CLOEXEC as permission bits instead of as a flag.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit ab53e2859facecc0486344679dc01ea31fb427e9)
-rw-r--r-- | hw/xfree86/os-support/linux/lnx_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/linux/lnx_platform.c b/hw/xfree86/os-support/linux/lnx_platform.c index 11af52c46..70374ace8 100644 --- a/hw/xfree86/os-support/linux/lnx_platform.c +++ b/hw/xfree86/os-support/linux/lnx_platform.c @@ -43,7 +43,7 @@ get_drm_info(struct OdevAttributes *attribs, char *path, int delayed_index) } if (fd == -1) - fd = open(path, O_RDWR, O_CLOEXEC); + fd = open(path, O_RDWR | O_CLOEXEC, 0); if (fd == -1) return FALSE; |