diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-07-11 09:49:30 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-07-13 16:41:11 +0200 |
commit | 62e48e5b71abe3002361bbf018961f8031fba03e (patch) | |
tree | c7befcc9ef6a7c00cc9ee36f171c62ce231f1ea8 /pkg/rootless/rootless_unsupported.go | |
parent | 0066374fc3f69bbfd9ed08986115049d9a39b1f8 (diff) | |
download | podman-62e48e5b71abe3002361bbf018961f8031fba03e.tar.gz podman-62e48e5b71abe3002361bbf018961f8031fba03e.tar.bz2 podman-62e48e5b71abe3002361bbf018961f8031fba03e.zip |
rootless: correctly propagate the exit status from the container
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/rootless/rootless_unsupported.go')
-rw-r--r-- | pkg/rootless/rootless_unsupported.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/rootless/rootless_unsupported.go b/pkg/rootless/rootless_unsupported.go index a6efa73f5..b1f075045 100644 --- a/pkg/rootless/rootless_unsupported.go +++ b/pkg/rootless/rootless_unsupported.go @@ -13,8 +13,8 @@ func IsRootless() bool { // BecomeRootInUserNS is a stub function that always returns false and an // error on unsupported OS's -func BecomeRootInUserNS() (bool, error) { - return false, errors.New("this function is not supported on this os") +func BecomeRootInUserNS() (bool, int, error) { + return false, -1, errors.New("this function is not supported on this os") } // GetRootlessUID returns the UID of the user in the parent userNS |