Userland: Fix typos in setting user id

Fixes: #1219
This commit is contained in:
Shannon Booth 2020-02-15 11:26:27 +13:00 committed by Andreas Kling
parent 1f75dfd95d
commit 8249e666fc
Notes: sideshowbarker 2024-07-19 09:20:28 +09:00

View File

@ -70,12 +70,12 @@ int main(int argc, char** argv)
perror("setgroups");
return 1;
}
rc = setgid(uid);
rc = setgid(gid);
if (rc < 0) {
perror("setgid");
return 1;
}
rc = setuid(gid);
rc = setuid(uid);
if (rc < 0) {
perror("setuid");
return 1;