Loading RELEASE-NOTES +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ This release includes the following bugfixes: o build: Fixed overridden compiler PDB settings in VC7 to VC12 o ntlm_wb: Fixed buffer size not being large enough for NTLMv2 sessions [11] o netrc: don't abort if home dir cannot be found o netrc: fixed thread safety problem by using getpwuid_r if available This release includes the following known bugs: Loading configure.ac +1 −0 Original line number Diff line number Diff line Loading @@ -3033,6 +3033,7 @@ AC_CHECK_FUNCS([fork \ getppid \ getprotobyname \ getpwuid \ getpwuid_r \ getrlimit \ gettimeofday \ if_nametoindex \ Loading lib/netrc.c +13 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,19 @@ int Curl_parsenetrc(const char *host, char *home = curl_getenv("HOME"); /* portable environment reader */ if(home) { home_alloc = TRUE; #if defined(HAVE_GETPWUID) && defined(HAVE_GETEUID) #if defined(HAVE_GETPWUID_R) && defined(HAVE_GETEUID) } else { struct passwd pw, *pw_res; char pwbuf[1024]; if(!getpwuid_r(geteuid(), &pw, pwbuf, sizeof(pwbuf), &pw_res) && pw_res) { home = strdup(pw.pw_dir); if(!home) return CURLE_OUT_OF_MEMORY; home_alloc = TRUE; } #elif defined(HAVE_GETPWUID) && defined(HAVE_GETEUID) } else { struct passwd *pw; Loading Loading
RELEASE-NOTES +1 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ This release includes the following bugfixes: o build: Fixed overridden compiler PDB settings in VC7 to VC12 o ntlm_wb: Fixed buffer size not being large enough for NTLMv2 sessions [11] o netrc: don't abort if home dir cannot be found o netrc: fixed thread safety problem by using getpwuid_r if available This release includes the following known bugs: Loading
configure.ac +1 −0 Original line number Diff line number Diff line Loading @@ -3033,6 +3033,7 @@ AC_CHECK_FUNCS([fork \ getppid \ getprotobyname \ getpwuid \ getpwuid_r \ getrlimit \ gettimeofday \ if_nametoindex \ Loading
lib/netrc.c +13 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,19 @@ int Curl_parsenetrc(const char *host, char *home = curl_getenv("HOME"); /* portable environment reader */ if(home) { home_alloc = TRUE; #if defined(HAVE_GETPWUID) && defined(HAVE_GETEUID) #if defined(HAVE_GETPWUID_R) && defined(HAVE_GETEUID) } else { struct passwd pw, *pw_res; char pwbuf[1024]; if(!getpwuid_r(geteuid(), &pw, pwbuf, sizeof(pwbuf), &pw_res) && pw_res) { home = strdup(pw.pw_dir); if(!home) return CURLE_OUT_OF_MEMORY; home_alloc = TRUE; } #elif defined(HAVE_GETPWUID) && defined(HAVE_GETEUID) } else { struct passwd *pw; Loading