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

Collapse All | Expand All

(-)session.c (-7 / +5 lines)
Lines 456-463 Link Here
456
	session_proctitle(s);
456
	session_proctitle(s);
457
457
458
#if defined(USE_PAM)
458
#if defined(USE_PAM)
459
	do_pam_session(s->pw->pw_name, NULL);
460
	do_pam_setcred(1);
461
	if (is_pam_password_change_required())
459
	if (is_pam_password_change_required())
462
		packet_disconnect("Password change required but no "
460
		packet_disconnect("Password change required but no "
463
		    "TTY available");
461
		    "TTY available");
Lines 582-592 Link Here
582
	ptyfd = s->ptyfd;
580
	ptyfd = s->ptyfd;
583
	ttyfd = s->ttyfd;
581
	ttyfd = s->ttyfd;
584
582
585
#if defined(USE_PAM)
586
	do_pam_session(s->pw->pw_name, s->tty);
587
	do_pam_setcred(1);
588
#endif
589
590
	/* Fork the child. */
583
	/* Fork the child. */
591
	if ((pid = fork()) == 0) {
584
	if ((pid = fork()) == 0) {
592
		fatal_remove_all_cleanups();
585
		fatal_remove_all_cleanups();
Lines 1310-1315 Link Here
1310
	/* login(1) is only called if we execute the login shell */
1303
	/* login(1) is only called if we execute the login shell */
1311
	if (options.use_login && command != NULL)
1304
	if (options.use_login && command != NULL)
1312
		options.use_login = 0;
1305
		options.use_login = 0;
1306
1307
#ifdef USE_PAM
1308
	do_pam_session(s->pw->pw_name, s->tty);
1309
	do_pam_setcred(1);
1310
#endif
1313
1311
1314
#ifdef _UNICOS
1312
#ifdef _UNICOS
1315
	cray_setup(pw->pw_uid, pw->pw_name, command);
1313
	cray_setup(pw->pw_uid, pw->pw_name, command);

Return to bug 83