From 62e48e5b71abe3002361bbf018961f8031fba03e Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 11 Jul 2018 09:49:30 +0200 Subject: rootless: correctly propagate the exit status from the container Signed-off-by: Giuseppe Scrivano --- cmd/podman/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/podman/main.go') diff --git a/cmd/podman/main.go b/cmd/podman/main.go index fefd8fdad..4d841e0f2 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -27,13 +27,13 @@ func main() { debug := false cpuProfile := false - became, err := rootless.BecomeRootInUserNS() + became, ret, err := rootless.BecomeRootInUserNS() if err != nil { logrus.Errorf(err.Error()) os.Exit(1) } if became { - os.Exit(0) + os.Exit(ret) } if reexec.Init() { -- cgit v1.2.3-54-g00ecf