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:
parent
12eb1f5d74
commit
b4b8b8850a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue