diff options
author | Rob Pike <r@golang.org> | 2014-09-23 18:24:35 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2014-09-23 18:24:35 -0700 |
commit | c7d978d6612dc9737af8614fe3a3f15d3386f3f5 (patch) | |
tree | c85cb825f2d12e4726137011d0b9f95a657559ae /CONTRIBUTORS | |
parent | f5bdbc64083690841d98dc86eab44245be9c345b (diff) | |
download | go-c7d978d6612dc9737af8614fe3a3f15d3386f3f5.tar.gz |
cmd/pack: fix c command for existing file
There were at least two bugs:
1) It would overwrite a non-archive.
2) It would truncate a non-archive and then fail.
In general the file handling was too clever to be correct.
Make it more straightforward, doing the creation
separately from archive management.
Fixes issue 8369.
LGTM=adg, iant
R=golang-codereviews, adg, iant
CC=golang-codereviews
https://codereview.appspot.com/147010046
Diffstat (limited to 'CONTRIBUTORS')
0 files changed, 0 insertions, 0 deletions