From eb568dac3bf35525e252b50329ca08331087ecee Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 1 Jan 2010 00:55:14 -0200 Subject: Call endpwent() after obtaining all user information. --- hardinfo2/arch/common/users.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hardinfo2') diff --git a/hardinfo2/arch/common/users.h b/hardinfo2/arch/common/users.h index 31d0b719..8d087fa5 100644 --- a/hardinfo2/arch/common/users.h +++ b/hardinfo2/arch/common/users.h @@ -58,4 +58,6 @@ scan_users_do(void) users = h_strdup_cprintf("$%s$%s=%s\n", users, key, passwd_->pw_name, passwd_->pw_gecos); passwd_ = getpwent(); } + + endpwent(); } -- cgit v1.2.3