From a8693de1ea340eb4cb2b63b6484b95517d688bf4 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 3 Jun 1996 20:34:35 +0000 Subject: (ps_user_passwd): Check return value of install_passwd correctly (it's an error_t). --- libps/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3