]> Cypherpunks repositories - gostls13.git/commit
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)
committerDamien Neil <dneil@google.com>
Mon, 25 Aug 2025 15:33:58 +0000 (08:33 -0700)
commited7f804775725149088a71108efd0b20ef9f206f
treeb089160984e11e3c087d0aae234e99bfe79a07e0
parenta21249436b6e1fd47356361d53dc053bbc074f90
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.

Fixes #73868

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>
src/os/root_test.go
src/os/root_unix.go
src/os/root_windows.go