From 127fd6583ff6ca60879bd79bc67dc379eedb6c8b Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Sat, 27 May 2000 00:03:26 +0000 Subject: Wrap getegid with xf86getegid --- libdrm/xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c index f0272462..1174a0fa 100644 --- a/libdrm/xf86drm.c +++ b/libdrm/xf86drm.c @@ -215,7 +215,7 @@ int drmAvailable(void) remove(dev_name); if ((fd = drmOpenDevice(dev_name, makedev(DRM_FIXED_DEVICE_MAJOR, 0), - S_IRUSR, getuid(), getgid())) >= 0) { + S_IRUSR, geteuid(), getegid())) >= 0) { /* Read version to make sure this is actually a DRI device. */ if ((version = drmGetVersion(fd))) { -- cgit v1.2.3