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

Collapse All | Expand All

(-)openssh-3.7.1p2.orig/session.c (-3 / +1 lines)
Lines 396-402 Link Here
396
396
397
#if defined(USE_PAM)
397
#if defined(USE_PAM)
398
	if (options.use_pam) {
398
	if (options.use_pam) {
399
		do_pam_setcred(1);
400
		if (is_pam_password_change_required())
399
		if (is_pam_password_change_required())
401
			packet_disconnect("Password change required but no "
400
			packet_disconnect("Password change required but no "
402
			    "TTY available");
401
			    "TTY available");
Lines 525-531 Link Here
525
#if defined(USE_PAM)
524
#if defined(USE_PAM)
526
	if (options.use_pam) {
525
	if (options.use_pam) {
527
		do_pam_set_tty(s->tty);
526
		do_pam_set_tty(s->tty);
528
		do_pam_setcred(1);
529
	}
527
	}
530
#endif
528
#endif
531
529
Lines 1276-1282 Link Here
1276
		 */
1274
		 */
1277
		if (options.use_pam) {
1275
		if (options.use_pam) {
1278
			do_pam_session();
1276
			do_pam_session();
1279
			do_pam_setcred(0);
1277
			do_pam_setcred(1);
1280
		}
1278
		}
1281
# endif /* USE_PAM */
1279
# endif /* USE_PAM */
1282
# if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)
1280
# if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)

Return to bug 789