View | Details | Raw Unified | Return to bug 236933 | Differences between
and this patch

Collapse All | Expand All

(-)b/graphics/libdrm/Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	libdrm
4
PORTNAME=	libdrm
5
PORTVERSION=	2.4.96
5
PORTVERSION=	2.4.96
6
PORTREVISION=	1
6
PORTEPOCH=	1
7
PORTEPOCH=	1
7
CATEGORIES=	graphics x11
8
CATEGORIES=	graphics x11
8
MASTER_SITES=	http://dri.freedesktop.org/libdrm/
9
MASTER_SITES=	http://dri.freedesktop.org/libdrm/
(-)b/graphics/libdrm/files/patch-xf86drm.c (-1 / +1 lines)
Lines 328-334 Link Here
328
+        return -1;
328
+        return -1;
329
+    }
329
+    }
330
+
330
+
331
+    int type = drmGetNodeType(name);
331
+    int type = drmGetNodeType(strrchr(name, '/') + 1);
332
+    free(name);
332
+    free(name);
333
+    if (type < 0)
333
+    if (type < 0)
334
+        errno = ENODEV;
334
+        errno = ENODEV;

Return to bug 236933