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

Collapse All | Expand All

(-)acconfig.h (+3 lines)
Lines 364-369 Link Here
364
/* Define if your platform needs to skip post auth file descriptor passing */
364
/* Define if your platform needs to skip post auth file descriptor passing */
365
#undef DISABLE_FD_PASSING
365
#undef DISABLE_FD_PASSING
366
366
367
/* Pushing STREAMS modules incorrectly acquires a controlling TTY */
368
#undef STREAMS_PUSH_ACQUIRES_CTTY
369
367
@BOTTOM@
370
@BOTTOM@
368
371
369
/* ******************* Shouldn't need to edit below this line ************** */
372
/* ******************* Shouldn't need to edit below this line ************** */
(-)configure.ac (+1 lines)
Lines 210-215 Link Here
210
	AC_DEFINE(LOGIN_NEEDS_UTMPX)
210
	AC_DEFINE(LOGIN_NEEDS_UTMPX)
211
	AC_DEFINE(LOGIN_NEEDS_TERM)
211
	AC_DEFINE(LOGIN_NEEDS_TERM)
212
	AC_DEFINE(PAM_TTY_KLUDGE)
212
	AC_DEFINE(PAM_TTY_KLUDGE)
213
	AC_DEFINE(STREAMS_PUSH_ACQUIRES_CTTY)
213
	# hardwire lastlog location (can't detect it on some versions)
214
	# hardwire lastlog location (can't detect it on some versions)
214
	conf_lastlog_location="/var/adm/lastlog"
215
	conf_lastlog_location="/var/adm/lastlog"
215
	AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
216
	AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
(-)sshd.c (-2 / +6 lines)
Lines 1392-1399 Link Here
1392
	 * setlogin() affects the entire process group.  We don't
1392
	 * setlogin() affects the entire process group.  We don't
1393
	 * want the child to be able to affect the parent.
1393
	 * want the child to be able to affect the parent.
1394
	 */
1394
	 */
1395
#if 0
1395
#if !defined(STREAMS_PUSH_ACQUIRES_CTTY)
1396
	/* XXX: this breaks Solaris */
1396
	/*
1397
	 * If setsid is called on Solaris, sshd will acquire the controlling
1398
	 * terminal while pushing STREAMS modules. This will prevent the
1399
	 * shell from acquiring it later.
1400
	 */
1397
	if (!debug_flag && !inetd_flag && setsid() < 0)
1401
	if (!debug_flag && !inetd_flag && setsid() < 0)
1398
		error("setsid: %.100s", strerror(errno));
1402
		error("setsid: %.100s", strerror(errno));
1399
#endif
1403
#endif

Return to bug 245