Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15:GA
libgssglue
secure-getenv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File secure-getenv.patch of Package libgssglue
Index: libgssglue-0.4/src/g_initialize.c =================================================================== --- libgssglue-0.4.orig/src/g_initialize.c +++ libgssglue-0.4/src/g_initialize.c @@ -26,6 +26,7 @@ * This function will initialize the gssapi mechglue library */ +#define _GNU_SOURCE #include "mglueP.h" #include <stdlib.h> @@ -195,8 +196,7 @@ static void solaris_initialize () void *dl; gss_mechanism (*sym)(void), mech; - if ((getuid() != geteuid()) || - ((filename = getenv("GSSAPI_MECH_CONF")) == NULL)) + if ((filename = secure_getenv("GSSAPI_MECH_CONF")) == NULL) filename = MECH_CONF; if ((conffile = fopen(filename, "r")) == NULL) { @@ -272,8 +272,7 @@ static void linux_initialize () void *dl; gss_mechanism (*sym)(void), mech; - if ((getuid() != geteuid()) || - ((filename = getenv("GSSAPI_MECH_CONF")) == NULL)) + if ((filename = secure_getenv("GSSAPI_MECH_CONF")) == NULL) filename = MECH_CONF; if ((conffile = fopen(filename, "r")) == NULL) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor