mirror of
https://github.com/containers/podman.git
synced 2025-10-09 23:15:39 +08:00
Merge pull request #27014 from SquallATF/patch-1
fix(emulation): avoid nil pointer dereference in registeredBinfmtMisc
This commit is contained in:
@ -27,7 +27,10 @@ func registeredBinfmtMisc() ([]string, error) {
|
||||
if filepath.Base(path) == "register" { // skip this one
|
||||
return nil
|
||||
}
|
||||
if err != nil && !errors.Is(err, os.ErrNotExist) {
|
||||
if err != nil {
|
||||
if errors.Is(err, fs.ErrNotExist) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
info, err := d.Info()
|
||||
|
Reference in New Issue
Block a user