From: Stijn Tintel Date: Wed, 23 Nov 2022 15:20:43 +0000 (+0200) Subject: Revert "sysupgrade: print errno on failure" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=122a5e3b8455f88fef4e050a229c4625a9a7c6ec;p=project%2Fprocd.git 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 --- 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(".");