From cbcd4bd60f56a081845d82e58c5dad35186ffc55 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 31 Aug 2024 20:29:18 -0300 Subject: [PATCH] mlibc: stub sys_getgroups --- patches/mlibc/jinx-working-patch.patch | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/patches/mlibc/jinx-working-patch.patch b/patches/mlibc/jinx-working-patch.patch index 9ea519a5..4f4d12b5 100644 --- a/patches/mlibc/jinx-working-patch.patch +++ b/patches/mlibc/jinx-working-patch.patch @@ -130,7 +130,7 @@ index 16ab8b7..5ccc503 100644 #endif +#endif diff --git mlibc-clean/options/rtld/generic/main.cpp mlibc-workdir/options/rtld/generic/main.cpp -index 360ed37..62e5d39 100644 +index 0f5f1a3..c66ef93 100644 --- mlibc-clean/options/rtld/generic/main.cpp +++ mlibc-workdir/options/rtld/generic/main.cpp @@ -17,6 +17,8 @@ @@ -219,10 +219,10 @@ index 0000000..e5b087a + diff --git mlibc-workdir/sysdeps/astral/generic/generic.cpp mlibc-workdir/sysdeps/astral/generic/generic.cpp new file mode 100644 -index 0000000..5047fee +index 0000000..3f0df5d --- /dev/null +++ mlibc-workdir/sysdeps/astral/generic/generic.cpp -@@ -0,0 +1,979 @@ +@@ -0,0 +1,985 @@ +#include +#include +#include @@ -291,6 +291,12 @@ index 0000000..5047fee + return 0; + } + ++ int sys_getgroups(size_t size, const gid_t *list, int *ret) { ++ // TODO unstub ++ *ret = 0; ++ return 0; ++ } ++ + int sys_vm_protect(void *pointer, size_t size, int prot) { + long ret; + return syscall(SYSCALL_MPROTECT, &ret, (uint64_t)pointer, size, prot);