mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 19:30:05 +01:00
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 ab53e2859f)
This commit is contained in:
parent
662273397c
commit
c3a06e330b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue