From 531b2848ace98f0d49d32b0fd29d6fb837cd6daa Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 12 Oct 2022 20:54:32 +0200 Subject: [PATCH] init: Execute /bin/sym instead of /sys/config We have now proven that exec() does fail and return to userspace when a file is not a valid executable. We can now go back to executing a normal program. --- apps/src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/src/init.c b/apps/src/init.c index 01fc6778..a6774a03 100644 --- a/apps/src/init.c +++ b/apps/src/init.c @@ -123,7 +123,7 @@ int main() sleep(2); - if (execv("/sys/config", NULL) < 0) + if (execv("/bin/sym", NULL) < 0) { perror("execv"); return 1;