View | Details | Raw Unified | Return to bug 633 | Differences between
and this patch

Collapse All | Expand All

(-)openbsd-compat/xcrypt.c (-4 / +9 lines)
Lines 104-113 shadow_pw(struct passwd *pw) Link Here
104
104
105
	if (spw != NULL)
105
	if (spw != NULL)
106
		pw_password = spw->ufld.fd_encrypt;
106
		pw_password = spw->ufld.fd_encrypt;
107
# elsif defined(__hpux) && !defined(HAVE_SECUREWARE)
107
# endif
108
	struct pr_passwd *spw;
108
109
        if (iscomsec() && (spw = getprpwnam(pw->pw_name)) != NULL)
109
# if defined(__hpux) && !defined(HAVE_SECUREWARE)
110
                pw_password = spw->ufld.fd_encrypt;
110
        if (iscomsec()) {
111
		struct pr_passwd *spw;
112
113
		if (spw = getprpwnam(pw->pw_name) != NULL)
114
			pw_password = spw->ufld.fd_encrypt;
115
	}
111
# endif
116
# endif
112
117
113
	return pw_password;
118
	return pw_password;

Return to bug 633