oksh-noxz

[fork] Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
git clone https://noxz.tech/git/oksh-noxz.git
oksh-noxz

commit: 18d5ab4db23502554ada3c03138dcc83ca812303
parent: 4c94c69373281e84275e5d8c7cfcb4747432873f
author: Brian Callahan <bcallah@openbsd.org>
date:   Sat, 4 Dec 2021 12:16:19 -0500
Fix setresgid and setresuid test parameters. Found by vbcc.
Mconfigure4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
@@ -487,7 +487,7 @@ setresgidcheck() {
   cat << EOF > conftest.c
 #include <sys/types.h>
 #include <unistd.h>
-int main(void){setresgid(NULL, NULL, NULL);return 0;}
+int main(void){setresgid(0, 0, 0);return 0;}
 EOF
   $cc $cflags -o conftest.o -c conftest.c > /dev/null 2>&1
   $cc $ldflags -o conftest conftest.o > /dev/null 2>&1
@@ -504,7 +504,7 @@ setresuidcheck() {
   cat << EOF > conftest.c
 #include <sys/types.h>
 #include <unistd.h>
-int main(void){setresuid(NULL, NULL, NULL);return 0;}
+int main(void){setresuid(0, 0, 0);return 0;}
 EOF
   $cc $cflags -o conftest.o -c conftest.c > /dev/null 2>&1
   $cc $ldflags -o conftest conftest.o > /dev/null 2>&1