summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libps/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/user.c b/libps/user.c
index 6c5ffedb..4af5014f 100644
--- a/libps/user.c
+++ b/libps/user.c
@@ -137,7 +137,7 @@ struct passwd *ps_user_passwd (struct ps_user *u)
else
{
struct passwd *pw = getpwuid (u->uid);
- if (pw != NULL && install_passwd (u, pw))
+ if (pw != NULL && install_passwd (u, pw) == 0)
{
u->passwd_state = PS_USER_PASSWD_OK;
return &u->passwd;