LibC: Fix broken setgroups() wrapper

This was invoking the wrong syscall (getgroups), oops! We had not been
using it yet, so it makes sense.
This commit is contained in:
Andreas Kling 2020-01-04 13:00:50 +01:00
commit b4b8b8850a
Notes: sideshowbarker 2024-07-19 10:22:49 +09:00

View file

@ -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);
}