drm-shim: stub libdrm's use of realpath()
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 3 Apr 2020 12:13:43 +0000 (15:13 +0300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Apr 2020 21:14:18 +0000 (21:14 +0000)
commit373f1eb9deab9d9435fba15be6de2a28bde79b87
tree8a04b51eb1e47f07bb6926c8a3299fa410b711a4
parentc3e305616cbc53317bbace6f1f316c9167f14313
drm-shim: stub libdrm's use of realpath()

libdrm started using realpath to get the type of bus associated with a
given device. This stubs the very specific usage that prevents
drm-shim's device from being listed.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4429>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4429>
src/drm-shim/drm_shim.c