]> Cypherpunks repositories - gostls13.git/commit
os: in Getwd, $PWD override syscall.Getwd
authorRuss Cox <rsc@golang.org>
Thu, 7 Aug 2014 12:58:25 +0000 (08:58 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 7 Aug 2014 12:58:25 +0000 (08:58 -0400)
commit6cee4d3e8f52d4ab5ba2f97ca58f11d5e4c29fd4
tree68ad121eb3f098d6d2364f718b9d4d339014067a
parent689995a73e7a03038e977b5080666b561173e2b6
os: in Getwd, $PWD override syscall.Getwd

This makes os.Getwd mimic C getwd on OS X,
and possibly other systems. The change on OS X
was a regression from 1.2 to 1.3.

Fixes #8400.

LGTM=bradfitz
R=iant, bradfitz
CC=golang-codereviews
https://golang.org/cl/118970043
src/pkg/os/getwd.go
src/pkg/os/os_test.go