]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: fix getting user home dir on darwin
authorKir Kolyshkin <kolyshkin@gmail.com>
Thu, 4 Oct 2018 01:41:18 +0000 (18:41 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 4 Oct 2018 02:31:59 +0000 (02:31 +0000)
commit2f1ef6be000fdf4ab74cb306e448c9e0e49bf148
treed295358cf1d12a7d49b844b18aa8882cd6a8252a
parentc6483b61a9096e3076439079c88eab84c9e6d859
crypto/x509: fix getting user home dir on darwin

As pointed out in https://github.com/golang/go/issues/26463,
HOME (or equivalent) environment variable (rather than the
value obtained by parsing /etc/passwd or the like) should be
used to obtain user's home directory.

Since commit fa1a49aa556d8 there's a method to obtain
user's home directory -- use it here.

Change-Id: I852fbb24249bcfe08f3874fae6e7b9d01d869190
Reviewed-on: https://go-review.googlesource.com/c/139426
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/x509/root_darwin.go