mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
sysutils/builldah: fix a nil pointer dereference
Attempting to use 'buildah run --network=host' caused a nil pointer dereference while setting up the container's resolv.conf file. PR: 280777
This commit is contained in:
parent
7973f822d0
commit
551dc594fa
@ -1,7 +1,7 @@
|
||||
PORTNAME= buildah
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.36.0
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= sysutils
|
||||
|
||||
MAINTAINER= dfr@FreeBSD.org
|
||||
|
11
sysutils/buildah/files/patch-run__freebsd.go
Normal file
11
sysutils/buildah/files/patch-run__freebsd.go
Normal file
@ -0,0 +1,11 @@
|
||||
--- run_freebsd.go.orig 2024-08-18 10:59:26 UTC
|
||||
+++ run_freebsd.go
|
||||
@@ -244,7 +244,7 @@ func (b *Builder) Run(command []string, options RunOpt
|
||||
// Only add entries here if we do not have to do setup network,
|
||||
// if we do we have to do it much later after the network setup.
|
||||
if !configureNetwork {
|
||||
- err = b.addResolvConfEntries(resolvFile, nil, nil, false, true)
|
||||
+ err = b.addResolvConfEntries(resolvFile, nil, spec, false, true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
Loading…
Reference in New Issue
Block a user