mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 05:10:20 +01:00
Revert "xf86drm: ignore symlinks in process_device()"
This reverts commit 7ab1cdac90.
This breaks numerous tools that rely on being able to read symlinks, and
constitutes a regression.
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Tested-by: Mark Janes <markjanes@swizzler.org>
Tested-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Closes: #103
This commit is contained in:
parent
7ab1cdac90
commit
1aa800d464
1 changed files with 1 additions and 4 deletions
|
|
@ -4479,10 +4479,7 @@ process_device(drmDevicePtr *device, const char *d_name,
|
|||
return -1;
|
||||
|
||||
snprintf(node, PATH_MAX, "%s/%s", DRM_DIR_NAME, d_name);
|
||||
if (lstat(node, &sbuf))
|
||||
return -1;
|
||||
|
||||
if (S_ISLNK(sbuf.st_mode))
|
||||
if (stat(node, &sbuf))
|
||||
return -1;
|
||||
|
||||
maj = major(sbuf.st_rdev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue