From 71f96c2e6ff755122e298c25dca5b9b6e4f07c6d Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 18 Aug 2022 11:34:39 +0200 Subject: [PATCH] rootless: define LIBEXECPODMAN Signed-off-by: Giuseppe Scrivano --- pkg/rootless/rootless_linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c index b47f3d2b9e..457db1881d 100644 --- a/pkg/rootless/rootless_linux.c +++ b/pkg/rootless/rootless_linux.c @@ -19,6 +19,8 @@ #include #include +#define LIBEXECPODMAN "/usr/libexec/podman" + #ifndef TEMP_FAILURE_RETRY #define TEMP_FAILURE_RETRY(expression) \ (__extension__ \ @@ -134,7 +136,7 @@ do_pause () sigaction (sig[i], &act, NULL); /* Attempt to execv catatonit to keep the pause process alive. */ - execl ("/usr/libexec/podman/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... */