From 478db91c3e8049e2411edd12d36117d673655554 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 23 Feb 2014 14:25:44 +0100 Subject: [PATCH] Fix setgid(2) calling sys_getgid rather than sys_setgid. --- libc/unistd/setgid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/unistd/setgid.cpp b/libc/unistd/setgid.cpp index e21ff680..dc7ac7e8 100644 --- a/libc/unistd/setgid.cpp +++ b/libc/unistd/setgid.cpp @@ -27,7 +27,7 @@ #include -DEFN_SYSCALL1(gid_t, sys_setgid, SYSCALL_GETGID, gid_t); +DEFN_SYSCALL1(gid_t, sys_setgid, SYSCALL_SETGID, gid_t); extern "C" int setgid(gid_t gid) {