pkg/rootless: use catatonit from /usr/libexec/podman

The path was missing a slash between the libexec path and the binary
name. This was never noticed because the code already falls back to a
builtt-in pause process.

Fixes: 71f96c2e6ff7 ("rootless: define LIBEXECPODMAN")

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2023-04-11 11:00:07 +02:00
parent bab95de9a2
commit 38c217a0bf

@ -278,7 +278,7 @@ do_pause ()
sigaction (sig[i], &act, NULL);
/* Attempt to execv catatonit to keep the pause process alive. */
execl (LIBEXECPODMAN "catatonit", "catatonit", "-P", NULL);
execl (LIBEXECPODMAN "/catatonit", "catatonit", "-P", NULL);
execl ("/usr/bin/catatonit", "catatonit", "-P", NULL);
/* and if the catatonit executable could not be found, fallback here... */