We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf795e commit 778f271Copy full SHA for 778f271
src/syscall/exec_linux_test.go
@@ -39,6 +39,8 @@ func isNotSupported(err error) bool {
39
switch errno {
40
case syscall.ENOSYS, syscall.ENOTSUP:
41
// Explicitly not supported.
42
+ // TODO(#41198): remove these cases when errors.Is reports that they are
43
+ // equivalent to ErrUnsupported.
44
return true
45
case syscall.EPERM, syscall.EROFS:
46
// User lacks permission: either the call requires root permission and the
@@ -51,12 +53,10 @@ func isNotSupported(err error) bool {
51
53
}
52
54
55
- if errors.Is(err, fs.ErrPermission) {
56
+ if errors.Is(err, fs.ErrPermission) || errors.Is(err, errors.ErrUnsupported) {
57
58
59
- // TODO(#41198): Also return true if errors.Is(err, errors.ErrUnsupported).
-
60
return false
61
62
0 commit comments