From ee3c44178ccde643925a2c418e671ea2b8155c46 Mon Sep 17 00:00:00 2001
From: Andre Maroneze <andre.maroneze@cea.fr>
Date: Thu, 18 Nov 2021 10:32:24 +0100
Subject: [PATCH] [Libc] fix missing initializer; rename variables

---
 share/libc/pwd.h | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/share/libc/pwd.h b/share/libc/pwd.h
index fb9ddca4827..f9cfaeacd20 100644
--- a/share/libc/pwd.h
+++ b/share/libc/pwd.h
@@ -44,16 +44,18 @@ struct passwd {
   char    *pw_shell;
 };
 
-__FC_EXTERN char __fc_getpwuid_pw_name[64];
-__FC_EXTERN char __fc_getpwuid_pw_passwd[64];
-__FC_EXTERN char __fc_getpwuid_pw_dir[64];
-__FC_EXTERN char __fc_getpwuid_pw_shell[64];
+__FC_EXTERN char __fc_getpw_pw_name[64];
+__FC_EXTERN char __fc_getpw_pw_passwd[64];
+__FC_EXTERN char __fc_getpw_pw_gecos[64];
+__FC_EXTERN char __fc_getpw_pw_dir[64];
+__FC_EXTERN char __fc_getpw_pw_shell[64];
 
 struct passwd __fc_pwd =
-  {.pw_name = __fc_getpwuid_pw_name,
-   .pw_passwd = __fc_getpwuid_pw_passwd,
-   .pw_dir = __fc_getpwuid_pw_dir,
-   .pw_shell = __fc_getpwuid_pw_shell};
+  {.pw_name = __fc_getpw_pw_name,
+   .pw_passwd = __fc_getpw_pw_passwd,
+   .pw_gecos = __fc_getpw_pw_gecos,
+   .pw_dir = __fc_getpw_pw_dir,
+   .pw_shell = __fc_getpw_pw_shell};
 
 struct passwd *__fc_p_pwd = & __fc_pwd;
 
-- 
GitLab