]> Cypherpunks repositories - gostls13.git/commit
os: treat Getwd result of ENOMEM the same as ENAMETOOLONG
authorIan Lance Taylor <iant@golang.org>
Tue, 3 Sep 2024 22:13:01 +0000 (15:13 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 4 Sep 2024 00:53:44 +0000 (00:53 +0000)
commitaf86efbe6d44a16236e390752e49b7ea295bb963
treed7488f96fa3da51cf6e1611c8b58b20329c5ab85
parenta00195d304e6858406c6c9c961d253eeb8cb0aec
os: treat Getwd result of ENOMEM the same as ENAMETOOLONG

We can see ENOMEM on FreeBSD.

Also don't fail the test if we get an EPERM error when reading
all the way up the tree; on Android we get that, perhaps because
the root directory is unreadable.

Also accept an EFAULT from a stat of a long name on Dragonfly,
which we see on the builders.

Change-Id: If37e6bf414b7b568c9a06130f71e79af153bfb75
Reviewed-on: https://go-review.googlesource.com/c/go/+/610415
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/os/error_errno.go
src/os/error_plan9.go
src/os/getwd.go
src/os/getwd_unix_test.go