aboutsummaryrefslogtreecommitdiff
path: root/sysutils/podman/files/patch-libpod_container__api.go
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/podman/files/patch-libpod_container__api.go')
-rw-r--r--sysutils/podman/files/patch-libpod_container__api.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/sysutils/podman/files/patch-libpod_container__api.go b/sysutils/podman/files/patch-libpod_container__api.go
deleted file mode 100644
index b6573d8a5467..000000000000
--- a/sysutils/podman/files/patch-libpod_container__api.go
+++ /dev/null
@@ -1,19 +0,0 @@
---- libpod/container_api.go.orig 2023-02-23 15:59:21 UTC
-+++ libpod/container_api.go
-@@ -788,10 +788,12 @@ func (c *Container) Cleanup(ctx context.Context) error
-
- // make sure all the container processes are terminated if we are running without a pid namespace.
- hasPidNs := false
-- for _, i := range c.config.Spec.Linux.Namespaces {
-- if i.Type == spec.PIDNamespace {
-- hasPidNs = true
-- break
-+ if c.config.Spec.Linux != nil {
-+ for _, i := range c.config.Spec.Linux.Namespaces {
-+ if i.Type == spec.PIDNamespace {
-+ hasPidNs = true
-+ break
-+ }
- }
- }
- if !hasPidNs {