mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
Replace os.Is* error checking functions with their errors.Is counterpart
Signed-off-by: Curd Becker <me@curd-becker.de>
This commit is contained in:
@@ -1103,7 +1103,7 @@ func getPipeFds(pid int) ([]string, error) {
|
||||
// Ignore permission errors, for rootless containers and other
|
||||
// non-dumpable processes. if we can't get the fd for a particular
|
||||
// file, there's not much we can do.
|
||||
if os.IsPermission(err) {
|
||||
if errors.Is(err, os.ErrPermission) {
|
||||
continue
|
||||
}
|
||||
return fds, err
|
||||
|
||||
Reference in New Issue
Block a user