From 3849197ce7b58db65c660f432b1e8a75806a99a9 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Wed, 23 Nov 2022 17:20:43 +0200 Subject: [PATCH] Revert "sysupgrade: print errno on failure" This commit was taken from one of my staging branches without my knowledge. Testing exposed problems with strerror, and the commit message was not updated to reflect the use of strerror either. Failed to exec upgraded: No error information This reverts commit 039b88f75367203e540009cc97603b1bce3fafa6. Signed-off-by: Stijn Tintel --- sysupgrade.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sysupgrade.c b/sysupgrade.c index 96a29e9..fc588b0 100644 --- a/sysupgrade.c +++ b/sysupgrade.c @@ -19,10 +19,8 @@ #include "sysupgrade.h" #include -#include #include #include -#include #include #include @@ -105,7 +103,7 @@ void sysupgrade_exec_upgraded(const char *prefix, char *path, execvp(argv[0], argv); /* Cleanup on failure */ - fprintf(stderr, "Failed to exec upgraded: %s\n", strerror(-errno)); + fprintf(stderr, "Failed to exec upgraded.\n"); unsetenv("WDTFD"); watchdog_set_cloexec(true); ret = chroot("."); -- 2.30.2