svn commit: r505442 - head/graphics/libdrm/files
Niclas Zeising
zeising at FreeBSD.org
Sun Jun 30 17:39:06 UTC 2019
Author: zeising
Date: Sun Jun 30 17:39:05 2019
New Revision: 505442
URL: https://svnweb.freebsd.org/changeset/ports/505442
Log:
graphics/libdrm: fix drmGetNodeTypeFromFd
Fix drmGetNodeTypeFromFd, this should have been part of r505441
PR: 236933
Submitted by: jbeich
Reviewed by: manu
Modified:
head/graphics/libdrm/files/patch-xf86drm.c
Modified: head/graphics/libdrm/files/patch-xf86drm.c
==============================================================================
--- head/graphics/libdrm/files/patch-xf86drm.c Sun Jun 30 17:31:49 2019 (r505441)
+++ head/graphics/libdrm/files/patch-xf86drm.c Sun Jun 30 17:39:05 2019 (r505442)
@@ -310,7 +310,7 @@
+ return -1;
+ }
+
-+ int type = drmGetNodeType(name);
++ int type = drmGetNodeType(strrchr(name, '/') + 1);
+ free(name);
+ if (type < 0)
+ errno = ENODEV;
More information about the svn-ports-all
mailing list