Commit c4b714d3 authored by David Crawshaw's avatar David Crawshaw

os: no /tmp on android

LGTM=minux, bradfitz
R=golang-codereviews, minux, bradfitz
CC=golang-codereviews
https://golang.org/cl/104650043
parent 5512f6f3
...@@ -308,7 +308,11 @@ func basename(name string) string { ...@@ -308,7 +308,11 @@ func basename(name string) string {
func TempDir() string { func TempDir() string {
dir := Getenv("TMPDIR") dir := Getenv("TMPDIR")
if dir == "" { if dir == "" {
if runtime.GOOS == "android" {
dir = "/data/local/tmp"
} else {
dir = "/tmp" dir = "/tmp"
} }
}
return dir return dir
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment