From ea886971f42bb44793b0ed08ee7f21f4ff046d18 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Wed, 22 Dec 2010 21:34:52 +0000 Subject: Do not remove(3) the device entry if open fails. ok oga@ --- lib/libdrm/xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libdrm/xf86drm.c b/lib/libdrm/xf86drm.c index 7c3bb3929..79313ed28 100644 --- a/lib/libdrm/xf86drm.c +++ b/lib/libdrm/xf86drm.c @@ -293,7 +293,7 @@ static int drmOpenDevice(long dev, int minor, int type) return fd; drmMsg("drmOpenDevice: Open failed\n"); - remove(buf); + return -errno; } -- cgit v1.2.3