pw_equal
int pw_equal(const struct passwd *_pw1, const struct passwd *_pw2);
if (old_pw && !pw_equal(fpw, old_pw)) {
if (pw_equal(old_pw, pw) &&