]> Cypherpunks repositories - gostls13.git/commit
os: check relative paths in UserConfigDir and UserCacheDir
authorrhysd <lin90162@yahoo.co.jp>
Wed, 17 Jul 2024 11:44:35 +0000 (11:44 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 22 Jul 2024 21:51:21 +0000 (21:51 +0000)
commitb8f83e22703ee23d49d95154449ce7066402d5c9
tree8ab0ccedc601cfa45cb2a4ddfd54cfc163c6e74e
parentc4a595cf294558579ab6342f1628ad37a7a4221c
os: check relative paths in UserConfigDir and UserCacheDir

Return errors by UserConfigDir and UserCacheDir when XDG environment
variables contain relative paths.

Fixes #68470

Change-Id: Ib36b56d73b066e002023be55ecfe74d5c0eedb15
GitHub-Last-Rev: c03f371a042c475a6f3f2259b06b140ade511404
GitHub-Pull-Request: golang/go#68471
Reviewed-on: https://go-review.googlesource.com/c/go/+/598655
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
src/os/file.go
src/os/os_test.go