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

Collapse All | Expand All

(-)../openssh-4.5p1.orig/session.c (+4 lines)
Lines 1846-1853 Link Here
1846
		n_bytes = packet_remaining();
1846
		n_bytes = packet_remaining();
1847
	tty_parse_modes(s->ttyfd, &n_bytes);
1847
	tty_parse_modes(s->ttyfd, &n_bytes);
1848
1848
1849
#ifndef __APPLE_PRIVPTY__
1849
	if (!use_privsep)
1850
	if (!use_privsep)
1850
		pty_setowner(s->pw, s->tty);
1851
		pty_setowner(s->pw, s->tty);
1852
#endif
1851
1853
1852
	/* Set window size from the packet. */
1854
	/* Set window size from the packet. */
1853
	pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel);
1855
	pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel);
Lines 2085-2093 Link Here
2085
	if (s->pid != 0)
2087
	if (s->pid != 0)
2086
		record_logout(s->pid, s->tty, s->pw->pw_name);
2088
		record_logout(s->pid, s->tty, s->pw->pw_name);
2087
2089
2090
#ifndef __APPLE_PRIVPTY__
2088
	/* Release the pseudo-tty. */
2091
	/* Release the pseudo-tty. */
2089
	if (getuid() == 0)
2092
	if (getuid() == 0)
2090
		pty_release(s->tty);
2093
		pty_release(s->tty);
2094
#endif
2091
2095
2092
	/*
2096
	/*
2093
	 * Close the server side of the socket pairs.  We must do this after
2097
	 * Close the server side of the socket pairs.  We must do this after

Return to bug 1419