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.
This commit is contained in:
parent
b0e1b8a2b2
commit
531b2848ac
@ -123,7 +123,7 @@ int main()
|
|||||||
|
|
||||||
sleep(2);
|
sleep(2);
|
||||||
|
|
||||||
if (execv("/sys/config", NULL) < 0)
|
if (execv("/bin/sym", NULL) < 0)
|
||||||
{
|
{
|
||||||
perror("execv");
|
perror("execv");
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user