]> Cypherpunks repositories - gostls13.git/commit
os: fix Root.MkdirAll to handle race of directory creation
authordatabase64128 <free122448@hotmail.com>
Thu, 21 Aug 2025 17:03:42 +0000 (01:03 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 22 Aug 2025 18:21:34 +0000 (11:21 -0700)
commita076f497577605e4cf0e20c147711e03dee7b2c3
treeb47f8bff985b7f17b570e112a04eac57f4fa09a7
parent98238fd495a2a16a2cd90197c6f41352760e4ccb
os: fix Root.MkdirAll to handle race of directory creation

No tests were added, because in order to reproduce, the directory would
have to be created precisely between the rootOpenDir and mkdirat calls,
which is impossible to do in a test.

Fixes #75114

Change-Id: I6f86a5b33c87452c35728318eaf2169a7534ef37
Reviewed-on: https://go-review.googlesource.com/c/go/+/698215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Sean Liao <sean@liao.dev>
src/os/root_openat.go