]> Cypherpunks repositories - gostls13.git/commit
os/user: fake Current on Android
authorElias Naur <elias.naur@gmail.com>
Wed, 8 Mar 2017 20:56:57 +0000 (21:56 +0100)
committerElias Naur <elias.naur@gmail.com>
Wed, 8 Mar 2017 21:34:32 +0000 (21:34 +0000)
commit228438e0973b688829fdd601e31352920a5914f4
tree022459f03bc31c725de4f6d1962437d9d078ac2e
parent29edf0f9feb0e7412788a20e7d8d473270cb9342
os/user: fake Current on Android

On Android devices where the stub fallback for Current fails to
extract a User from the environment, return a dummy fallback instead
of failing.

While we're here, use / instead of /home/nacl for the NaCL fallback.

Hopefully fixes the Android builder.

Change-Id: Ia29304fbc224ee5f9c0f4e706d1756f765a7eae5
Reviewed-on: https://go-review.googlesource.com/37960
Run-TryBot: Elias Naur <elias.naur@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/user/lookup_stubs.go
src/os/user/user_test.go