oauth2/google
Akihiro Suda 96382aa079 google: prefer os.Getenv("HOME") over os/user.Current() so as to avoid SEGV
Due to an issue in handling thread-local storages, os/user can lead to SEGV
when glibc is statically linked with.

So we prefer os.Getenv("HOME") for guessing where is the home directory.

See also: golang/go#13470

Change-Id: I1046ff93a71aa3b11299f7e6cf65ff7b1fb07eb9
Reviewed-on: https://go-review.googlesource.com/34175
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-13 07:49:53 +00:00
..
testdata/gcloud oauth2/google: fix decode error in Cloud SDK config 2015-02-12 05:35:05 +00:00
appengine.go google: add DefaultCredentials function 2016-11-30 17:46:31 +00:00
appengine_hook.go google: add DefaultCredentials function 2016-11-30 17:46:31 +00:00
appenginevm_hook.go google: add DefaultCredentials function 2016-11-30 17:46:31 +00:00
default.go google: add DefaultCredentials function 2016-11-30 17:46:31 +00:00
example_test.go google: fix the build when appengine isn't present 2016-07-15 18:42:06 +00:00
google.go google: add DefaultCredentials function 2016-11-30 17:46:31 +00:00
google_test.go google: make JWTConfigFromJSON set TokenURL from the JSON's token_uri 2016-09-02 05:03:02 +00:00
jwt.go google: support key ID in JWTAccessTokenSourceFromJSON 2016-07-02 01:08:09 +00:00
jwt_test.go google: fix warnings from go vet 2016-07-19 16:36:24 +00:00
sdk.go google: prefer os.Getenv("HOME") over os/user.Current() so as to avoid SEGV 2016-12-13 07:49:53 +00:00
sdk_test.go google: fix warnings from go vet 2016-07-19 16:36:24 +00:00