From 9d9796499854ca8819d71868facf02c7046d2ec1 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 2 Dec 2024 05:02:27 +0200 Subject: [PATCH] LibC: Fix getpwend gid field :) --- userspace/libraries/LibC/pwd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libraries/LibC/pwd.cpp b/userspace/libraries/LibC/pwd.cpp index 04996eca..dfb9eee0 100644 --- a/userspace/libraries/LibC/pwd.cpp +++ b/userspace/libraries/LibC/pwd.cpp @@ -88,7 +88,7 @@ struct passwd* getpwent(void) ASSERT(1 <= field_len && field_len <= 9); for (size_t j = 0; j < field_len; j++) ASSERT(isdigit(ptr[j])); - s_pwent_struct.pw_uid = atoi(ptr); + s_pwent_struct.pw_gid = atoi(ptr); break; case 4: break;