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

Collapse All | Expand All

(-),session.c (-8 / +14 lines)
Lines 661-674 Link Here
661
		debug("Forced command '%.900s'", command);
661
		debug("Forced command '%.900s'", command);
662
	}
662
	}
663
663
664
#ifdef GSSAPI
665
	if (options.gss_authentication) {
666
		temporarily_use_uid(s->pw);
667
		ssh_gssapi_storecreds();
668
		restore_uid();
669
	}
670
#endif
671
672
	if (s->ttyfd != -1)
664
	if (s->ttyfd != -1)
673
		do_exec_pty(s, command);
665
		do_exec_pty(s, command);
674
	else
666
	else
Lines 1247-1252 Link Here
1247
# ifdef __bsdi__
1239
# ifdef __bsdi__
1248
		setpgid(0, 0);
1240
		setpgid(0, 0);
1249
# endif
1241
# endif
1242
#ifdef GSSAPI
1243
	if (options.gss_authentication) {
1244
		temporarily_use_uid(pw);
1245
		ssh_gssapi_storecreds();
1246
		restore_uid();
1247
	}
1248
#endif
1250
# ifdef USE_PAM
1249
# ifdef USE_PAM
1251
		if (options.use_pam) {
1250
		if (options.use_pam) {
1252
			do_pam_session();
1251
			do_pam_session();
Lines 1277-1282 Link Here
1277
			exit(1);
1276
			exit(1);
1278
		}
1277
		}
1279
		endgrent();
1278
		endgrent();
1279
#ifdef GSSAPI
1280
	if (options.gss_authentication) {
1281
		temporarily_use_uid(pw);
1282
		ssh_gssapi_storecreds();
1283
		restore_uid();
1284
	}
1285
#endif
1280
# ifdef USE_PAM
1286
# ifdef USE_PAM
1281
		/*
1287
		/*
1282
		 * PAM credentials may take the form of supplementary groups.
1288
		 * PAM credentials may take the form of supplementary groups.

Return to bug 918