diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2010-01-01 00:55:14 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2010-01-01 00:55:14 -0200 |
commit | eb568dac3bf35525e252b50329ca08331087ecee (patch) | |
tree | 2a733f0600d8e7c3e02372d1ab8373f947d8067e /hardinfo2 | |
parent | 3559154199232401cd08269854fd8f4a85757af6 (diff) |
Call endpwent() after obtaining all user information.
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/arch/common/users.h | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |