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