diff options
author | Miles Bader <miles@gnu.org> | 1996-06-03 20:34:35 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-06-03 20:34:35 +0000 |
commit | a8693de1ea340eb4cb2b63b6484b95517d688bf4 (patch) | |
tree | 4bff92b77403399c27f4e3f540096c030913d63f /libps | |
parent | f320bac1aff62b6abe93ae202fb7c241471c6906 (diff) |
(ps_user_passwd): Check return value of install_passwd correctly (it's an error_t).
Diffstat (limited to 'libps')
-rw-r--r-- | libps/user.c | 2 |
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; |