]> Cypherpunks repositories - gostls13.git/commit
godoc: fix writeFileAtomically utility function
authorRobert Griesemer <gri@golang.org>
Thu, 24 Feb 2011 19:13:20 +0000 (11:13 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 24 Feb 2011 19:13:20 +0000 (11:13 -0800)
commitc9021a1afec280134638a1ffb15597354fee269c
tree9553b3f80ae46ade67f07c42d747fd4963cf32f1
parent11bda7df47de8cb02d77750351e90419cc946173
godoc: fix writeFileAtomically utility function

If the filename was absolute, writeFileAtomically
used the wrong filename for ioutil.TempFile leading
to non-existent directories and the TempFile would
fail.

R=r, r2
CC=golang-dev
https://golang.org/cl/4224043
src/cmd/godoc/utils.go