Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
curl.36283
curl-secure-getenv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File curl-secure-getenv.patch of Package curl.36283
Index: curl-7.82.0/lib/getenv.c =================================================================== --- curl-7.82.0.orig/lib/getenv.c +++ curl-7.82.0/lib/getenv.c @@ -27,6 +27,14 @@ #include "memdebug.h" +#ifndef HAVE_SECURE_GETENV +# ifdef HAVE___SECURE_GETENV +# define secure_getenv __secure_getenv +# else +# error neither secure_getenv nor __secure_getenv is available +# endif +#endif + static char *GetEnv(const char *variable) { #if defined(_WIN32_WCE) || defined(CURL_WINDOWS_APP) @@ -66,7 +74,7 @@ static char *GetEnv(const char *variable /* else rc is bytes needed, try again */ } #else - char *env = getenv(variable); + char *env = secure_getenv(variable); return (env && env[0])?strdup(env):NULL; #endif } Index: curl-7.82.0/configure.ac =================================================================== --- curl-7.82.0.orig/configure.ac +++ curl-7.82.0/configure.ac @@ -4271,6 +4271,8 @@ if test "x$want_curldebug_assumed" = "xy ac_configure_args="$ac_configure_args --enable-curldebug" fi +AC_CHECK_FUNCS([__secure_getenv secure_getenv]) + AC_CONFIG_FILES([Makefile \ docs/Makefile \ docs/examples/Makefile \
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