mirror of
https://github.com/containers/podman.git
synced 2025-12-02 19:28:58 +08:00
Bump Buidah to v1.42.0 for Podman v5.7
Vendor Buildah v1.42.0 into Podman for v5.7.0. This will also drag in: go.podman.io/common v0.66.0 go.podman.io/image v5.38.0 go.podman.io/storage v1.61.0 Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/buildah/chroot/run_common.go
generated
vendored
10
vendor/github.com/containers/buildah/chroot/run_common.go
generated
vendored
@@ -12,6 +12,7 @@ import (
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"slices"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
@@ -743,6 +744,15 @@ func runUsingChrootExecMain() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// Set $PATH to the value for the container, so that when args[0] is not an absolute path,
|
||||
// exec.Command() can find it using exec.LookPath().
|
||||
for _, env := range slices.Backward(options.Spec.Process.Env) {
|
||||
if val, ok := strings.CutPrefix(env, "PATH="); ok {
|
||||
os.Setenv("PATH", val)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// Actually run the specified command.
|
||||
cmd := exec.Command(args[0], args[1:]...)
|
||||
setPdeathsig(cmd)
|
||||
|
||||
Reference in New Issue
Block a user