From b4b8b8850a9df4144ede3d34ddcf4ab1ba851b63 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 4 Jan 2020 13:00:50 +0100 Subject: [PATCH] LibC: Fix broken setgroups() wrapper This was invoking the wrong syscall (getgroups), oops! We had not been using it yet, so it makes sense. --- Libraries/LibC/unistd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index 37ec81c8e7..f90fca4da2 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -349,7 +349,7 @@ int dup2(int old_fd, int new_fd) int setgroups(size_t size, const gid_t* list) { - int rc = syscall(SC_getgroups, size, list); + int rc = syscall(SC_setgroups, size, list); __RETURN_WITH_ERRNO(rc, rc, -1); }