logo

utils-std

Collection of commonly available Unix tools
commit: 9f439095960843ec79c6083eb0b489ec05efb7b7
parent d4bd229c22df3978c6e3a1ded88888ff94484e7d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  8 Jun 2024 09:12:47 +0200

cmd/chroot: Use (char *)0 instead of NULL for execl

http://ewontfix.com/11

Diffstat:

Mcmd/chroot.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/chroot.c b/cmd/chroot.c @@ -49,7 +49,7 @@ main(int argc, char *argv[]) shell = "/bin/sh"; } - ret = execlp(shell, shell, "-i", NULL); + ret = execlp(shell, shell, "-i", (char *)0); } else {