]> Cypherpunks repositories - gostls13.git/commit
cmd/go: reject 'get' of paths containing leading dots or unsupported characters
authorBryan C. Mills <bcmills@google.com>
Fri, 30 Nov 2018 20:06:40 +0000 (15:06 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 14 Dec 2018 00:59:35 +0000 (00:59 +0000)
commitbc82d7c7db83487e05d7a88e06549d4ae2a688c3
tree0de564bb42c968383eb06cfdfc999c904dd9453f
parent190a5f8fd2f360c22c11b290796ae7fc0fa5607c
cmd/go: reject 'get' of paths containing leading dots or unsupported characters

On some platforms, directories beginning with dot are treated as
hidden files, and filenames containing unusual characters can be
confusing for users to manipulate (and delete).

Fixes #29230
Fixes #29231

Change-Id: Ic6f97f577d8fafa83ef62438095a5c7ae022881a
Reviewed-on: https://team-review.git.corp.google.com/c/368507
Reviewed-by: Russ Cox <rsc@google.com>
Reviewed-on: https://go-review.googlesource.com/c/154101
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/get/get.go
src/cmd/go/internal/get/path.go [new file with mode: 0644]
src/cmd/go/testdata/script/get_brace.txt [new file with mode: 0644]
src/cmd/go/testdata/script/get_dotfiles.txt [new file with mode: 0644]