summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2022-11-23 17:20:43 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2023-03-22 21:01:48 +0200
commit122a5e3b8455f88fef4e050a229c4625a9a7c6ec (patch)
tree3f8020b7898a2a37a795affe5297be759737dd00
parent190f13a75e67e0bdb662188da79b8be31e0aae01 (diff)
downloadprocd-122a5e3b8455f88fef4e050a229c4625a9a7c6ec.tar.gz
Revert "sysupgrade: print errno on failure"HEADmaster
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 <stijn@linux-ipv6.be>
-rw-r--r--sysupgrade.c4
1 files changed, 1 insertions, 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 <ctype.h>
-#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include <libubox/blobmsg.h>
@@ -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(".");