mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Ensure sig-proxy default is propagated in start
We properly determined what sig-proxy should be set to, but we never passed that along to the backend. As such, cases where the default swapped (mostly when `--attach` was specified but the `--sig-proxy` flag was not) were not handled correctly Fixes #6928 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -82,6 +82,7 @@ func start(cmd *cobra.Command, args []string) error {
|
||||
if cmd.Flag("sig-proxy").Changed {
|
||||
sigProxy = startOptions.SigProxy
|
||||
}
|
||||
startOptions.SigProxy = sigProxy
|
||||
|
||||
if sigProxy && !startOptions.Attach {
|
||||
return errors.Wrapf(define.ErrInvalidArg, "you cannot use sig-proxy without --attach")
|
||||
|
Reference in New Issue
Block a user