1
0
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:
Doug Rabson 2024-08-19 14:04:46 +01:00
parent 7973f822d0
commit 551dc594fa
2 changed files with 12 additions and 1 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= buildah
DISTVERSIONPREFIX= v
DISTVERSION= 1.36.0
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= sysutils
MAINTAINER= dfr@FreeBSD.org

View 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
}