From 8249e666fcaf6a4c1f4856443f40c67f0f3704c2 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 15 Feb 2020 11:26:27 +1300 Subject: [PATCH] Userland: Fix typos in setting user id Fixes: #1219 --- Userland/su.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/su.cpp b/Userland/su.cpp index 4c1d4b8ccc3..0085974aa0e 100644 --- a/Userland/su.cpp +++ b/Userland/su.cpp @@ -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;