From 9a9db98089717990cd5e0eef529f6bb0819ebe46 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Wed, 16 Aug 2017 04:32:39 -0500 Subject: New upstream version 0.5.1+git20170815 --- modules/computer/users.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'modules/computer/users.c') diff --git a/modules/computer/users.c b/modules/computer/users.c index e8f891ac..f47320bb 100644 --- a/modules/computer/users.c +++ b/modules/computer/users.c @@ -39,15 +39,16 @@ scan_users_do(void) while (passwd_) { gchar *key = g_strdup_printf("USER%s", passwd_->pw_name); - gchar *val = g_strdup_printf("[User Information]\n" - "User ID=%d\n" - "Group ID=%d\n" - "Home directory=%s\n" - "Default shell=%s\n", - (gint) passwd_->pw_uid, - (gint) passwd_->pw_gid, - passwd_->pw_dir, - passwd_->pw_shell); + gchar *val = g_strdup_printf("[%s]\n" + "%s=%d\n" + "%s=%d\n" + "%s=%s\n" + "%s=%s\n", + _("User Information"), + _("User ID"), (gint) passwd_->pw_uid, + _("Group ID"), (gint) passwd_->pw_gid, + _("Home Directory"), passwd_->pw_dir, + _("Default Shell"), passwd_->pw_shell); moreinfo_add_with_prefix("COMP", key, val); strend(passwd_->pw_gecos, ','); @@ -55,6 +56,6 @@ scan_users_do(void) passwd_ = getpwent(); g_free(key); } - + endpwent(); } -- cgit v1.2.3