go/src/os/user
Elias Naur 228438e097 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>
2017-03-08 21:34:32 +00:00
..
cgo_lookup_unix.go os/user: rename group cgo file 2017-02-27 15:18:44 +00:00
getgrouplist_darwin.go
getgrouplist_unix.go
listgroups_solaris.go
listgroups_unix.go
lookup.go os/user: cache the result of user.Current 2017-02-06 18:49:52 +00:00
lookup_android.go os/user: use the stubs fallback for Android 2017-03-07 19:38:24 +00:00
lookup_plan9.go
lookup_stubs.go os/user: fake Current on Android 2017-03-08 21:34:32 +00:00
lookup_unix.go os/user: add non-cgo versions of Lookup, LookupId 2017-03-04 17:37:29 +00:00
lookup_unix_test.go os/user: add non-cgo versions of Lookup, LookupId 2017-03-04 17:37:29 +00:00
lookup_windows.go
user.go os/user: document the difference between Username and Name 2017-01-07 22:54:27 +00:00
user_test.go os/user: fake Current on Android 2017-03-08 21:34:32 +00:00