1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

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
parent 12eb1f5d74
commit b4b8b8850a

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