os: avoid panic when RemoveAll fails to remove a symlink
Fix a case where RemoveAll directly returned the error returned
from openDirAt. When the target of openDirAt is a symlink,
it returns an internal-use-only errSymlink error. This error
panics when printed, to catch misuse of openDirAt.
Fix RemoveAll to detect and handle the errSymlink return.
Fixes #78490
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[release-branch.go1.26] os: avoid panic when RemoveAll fails to remove a symlink
Fix a case where RemoveAll directly returned the error returned
from openDirAt. When the target of openDirAt is a symlink,
it returns an internal-use-only errSymlink error. This error
panics when printed, to catch misuse of openDirAt.
Fix RemoveAll to detect and handle the errSymlink return.
For #78490
Fixes #78867
Change-Id: Ibd857280bfca1feb50c163a6e4b192716a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/763520
Reviewed-by: Nicholas Husin <hu...@google.com>
LUCI-TryBot-Result: golang...@luci-project-accounts.iam.gserviceaccount.com <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicholas Husin <n...@golang.org>
(cherry picked from commit 5ddbf4b0e3be9e22b719b8a6a5aeb20029839972)
Reviewed-on: https://go-review.googlesource.com/c/go/+/769021
Reviewed-by: Robert Griesemer <g...@google.com>
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[release-branch.go1.25] os: avoid panic when RemoveAll fails to remove a symlink
Fix a case where RemoveAll directly returned the error returned
from openDirAt. When the target of openDirAt is a symlink,
it returns an internal-use-only errSymlink error. This error
panics when printed, to catch misuse of openDirAt.
Fix RemoveAll to detect and handle the errSymlink return.
For #78490
Fixes #78866
Change-Id: Ibd857280bfca1feb50c163a6e4b192716a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/763520
Reviewed-by: Nicholas Husin <hu...@google.com>
LUCI-TryBot-Result: golang...@luci-project-accounts.iam.gserviceaccount.com <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicholas Husin <n...@golang.org>
(cherry picked from commit 5ddbf4b0e3be9e22b719b8a6a5aeb20029839972)
Reviewed-on: https://go-review.googlesource.com/c/go/+/769020
Reviewed-by: Robert Griesemer <g...@google.com>
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |