Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2019 17:39:05 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r505442 - head/graphics/libdrm/files
Message-ID:  <201906301739.x5UHd5nj022854@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906301739.x5UHd5nj022854>