diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-09-09 22:10:17 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-09-10 15:30:25 +0200 |
commit | d2e10a71d69565929309ff3c32665b216698d8b1 (patch) | |
tree | 45901a398281cf43e315a722af4712eaf5560a61 /pkg/api/handlers | |
parent | 580ac4c6abc336d984f3a09940a4ef3006f0e6a7 (diff) | |
download | podman-d2e10a71d69565929309ff3c32665b216698d8b1.tar.gz podman-d2e10a71d69565929309ff3c32665b216698d8b1.tar.bz2 podman-d2e10a71d69565929309ff3c32665b216698d8b1.zip |
podman unshare keep exit code
In case the command inside the podman unshare env failed podman unshare
always exits with 125 and prints `Error: exit status 125`. This is a
bad user experience and makes it difficult to use in scripts which could
expect certain exit codes.
This commit makes sure podman unshare uses the same exit code as the
command and does not print the useless `exit status X` message.
Also to match podman run/exec it should return 126 for EPERM
and 127 for ENOENT.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg/api/handlers')
0 files changed, 0 insertions, 0 deletions