From 266cc788291e2abdb86f5973962a26666a9b8256 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 31 Mar 2023 09:34:35 +0200 Subject: [PATCH] rootless: drop preexec hook error message the exec hooks already print the error message, so there is no need to print another one. [NO NEW TESTS NEEDED] Signed-off-by: Giuseppe Scrivano --- pkg/rootless/rootless_linux.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c index d4273185a0..016c677ad6 100644 --- a/pkg/rootless/rootless_linux.c +++ b/pkg/rootless/rootless_linux.c @@ -163,20 +163,11 @@ exec_binary (const char *path, char **argv, int argc) exit (EXIT_FAILURE); } if (WIFEXITED(status) && WEXITSTATUS (status)) - { - fprintf (stderr, "external preexec hook %s failed\n", path); - exit (WEXITSTATUS(status)); - } + exit (WEXITSTATUS(status)); if (WIFSIGNALED (status)) - { - fprintf (stderr, "external preexec hook %s failed\n", path); - exit (127+WTERMSIG (status)); - } + exit (127+WTERMSIG (status)); if (WIFSTOPPED (status)) - { - fprintf (stderr, "external preexec hook %s failed\n", path); exit (EXIT_FAILURE); - } } static void