View | Details | Raw Unified | Return to bug 2167
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +5 lines)
Line  Link Here
0
-- openssh-5.3p1.orig/sshd.c
0
++ openssh-5.3p1/sshd.c
Lines 686-691 privsep_preauth(Authctxt *authctxt) Link Here
686
686
687
	pid = fork();
687
	pid = fork();
688
	if (pid == -1) {
688
	if (pid == -1) {
689
		pmonitor->m_recvfd = EOF;
689
		fatal("fork of unprivileged child failed");
690
		fatal("fork of unprivileged child failed");
690
	} else if (pid != 0) {
691
	} else if (pid != 0) {
691
		debug2("Network child is on pid %ld", (long)pid);
692
		debug2("Network child is on pid %ld", (long)pid);
Lines 737-745 privsep_postauth(Authctxt *authctxt) Link Here
737
	monitor_reinit(pmonitor);
738
	monitor_reinit(pmonitor);
738
739
739
	pmonitor->m_pid = fork();
740
	pmonitor->m_pid = fork();
740
	if (pmonitor->m_pid == -1)
741
	if (pmonitor->m_pid == -1) {
742
		pmonitor->m_recvfd = EOF;
741
		fatal("fork of unprivileged child failed");
743
		fatal("fork of unprivileged child failed");
742
	else if (pmonitor->m_pid != 0) {
744
	} else if (pmonitor->m_pid != 0) {
743
		verbose("User child is on pid %ld", (long)pmonitor->m_pid);
745
		verbose("User child is on pid %ld", (long)pmonitor->m_pid);
744
		close(pmonitor->m_recvfd);
746
		close(pmonitor->m_recvfd);
745
		buffer_clear(&loginmsg);
747
		buffer_clear(&loginmsg);

Return to bug 2167