Properly revert the libGL loader path breakage.

This commit is contained in:
Kristian Høgsberg 2008-03-09 19:02:56 -04:00
parent 03db9c8acb
commit b0f8025434
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ static void *OpenDriver(const char *driverName)
/* Attempt to make sure libGL symbols will be visible to the driver */
glhandle = dlopen("libGL.so.1", RTLD_NOW | RTLD_GLOBAL);
libPaths = NULL;
if (geteuid() == getuid()) {
/* don't allow setuid apps to use LIBGL_DRIVERS_PATH */
libPaths = getenv("LIBGL_DRIVERS_PATH");