]> Cypherpunks repositories - gostls13.git/commit
os: treat Getwd result of EINVAL/ERANGE the same as ENAMETOOLONG
authorIan Lance Taylor <iant@golang.org>
Tue, 3 Sep 2024 18:28:42 +0000 (11:28 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 3 Sep 2024 20:21:45 +0000 (20:21 +0000)
commit57f4cf20996cf8b90b8f814c93db5dc18aaad99e
treeb0dcb56f71ba0be48ad51bf1a57353ce89765983
parent8eefc3b8f0dde0c89110817af3eccf44c79aeef0
os: treat Getwd result of EINVAL/ERANGE the same as ENAMETOOLONG

At least Darwin and OpenBSD seem to return EINVAL if the resulting
name would be too long. Solaris seems to return ERANGE.

Fixes #69233
Fixes #69234

Change-Id: I9b51d41461e9576c633bf2fc0e96ca3e4d986255
Reviewed-on: https://go-review.googlesource.com/c/go/+/609579
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
src/os/error_errno.go
src/os/error_plan9.go
src/os/getwd.go