Bläddra i källkod

LibC: Fix broken setgroups() wrapper

This was invoking the wrong syscall (getgroups), oops! We had not been
using it yet, so it makes sense.
Andreas Kling 5 år sedan
förälder
incheckning
b4b8b8850a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Libraries/LibC/unistd.cpp

+ 1 - 1
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 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);
     __RETURN_WITH_ERRNO(rc, rc, -1);
 }
 }