logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: fa9139ad0d4a881a366106863f266442b3ad5db9
parent 5f77b83347a8cdf686f66c8e160d10d5ff146ddd
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  8 Jun 2024 09:00:16 +0200

init.c: Use (char *)0 instead of NULL for execl

http://ewontfix.com/11

Diffstat:

Minit.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init.c b/init.c @@ -74,7 +74,7 @@ main(int argc, char *argv[]) fprintf(stderr, "Launching: /bin/loksh /init.sh\n"); - if(execl("/bin/loksh", "/bin/loksh", "/init.sh", NULL) < 0) + if(execl("/bin/loksh", "/bin/loksh", "/init.sh", (char *)0) < 0) { fprintf(stderr, "Failed to execute: %s\n", strerror(errno)); return 1;