]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.24] os: set full name for Roots created with Root.OpenRoot
authorDamien Neil <dneil@google.com>
Fri, 22 Aug 2025 17:47:01 +0000 (10:47 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 16 Sep 2025 18:04:27 +0000 (11:04 -0700)
commit8ac346df85773ac8919d5e10a1f3e4a0bc8be494
treebe4fc9a1205787c1ff0284ee88c470b006ff0ee2
parent6ab3a41c864978d98da4d1a1afd75975185a663b
[release-branch.go1.24] os: set full name for Roots created with Root.OpenRoot

Set the Name for a Root created within a Root to be the
concatenation of the parent's path and the name used to open the child.

This matches the behavior for files opened within a Root
with Root.Open.

For #73868
Fixes #75138

Change-Id: Idf4021602ac25556721b7ef6924dec652c7bf4db
Reviewed-on: https://go-review.googlesource.com/c/go/+/698376
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit ed7f804775725149088a71108efd0b20ef9f206f)
Reviewed-on: https://go-review.googlesource.com/c/go/+/704278
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/os/root_test.go
src/os/root_unix.go
src/os/root_windows.go