Date: 11 Feb 2001 08:37:09 -0500 From: Christopher K Davis <ckd@ckdhr.com> To: Barney Wolff <barney@pit.databus.com> Cc: Blaz Zupan <blaz@amis.net>, Matt Dillon <dillon@earth.backplane.com>, Andrew.Hodgkins@hurlburt.af.mil, kstewart@urx.com, freebsd-stable@FreeBSD.ORG Subject: Re: Proposed makewhatis perl script fix Message-ID: <w4bss9e3y2.fsf@kline-station.ckdhr.com> In-Reply-To: Barney Wolff's message of "Sun, 11 Feb 2001 03:41:48 -0500" References: <200102110819.f1B8Jk430590@earth.backplane.com> <Pine.BSF.4.32.0102110931450.13234-100000@titanic.medinet.si> <20010211034147.A51972@pit.databus.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Barney Wolff <barney@pit.databus.com> writes:
> Er, could it possibly be that telnet has been hiding the error
> all along? It's really, really hard to see how ssh could
> *create* this sort of error.
Try the following patch (which I dug up off the Web after the previous
go-round on this problem). It seems to work.
(The indentation is wrong, I know. I had to apply the patch -l because
the HTMLization of the original mail message hosed the whitespace.)
--- /usr/src/crypto/openssh/session.c Sun Feb 4 10:01:29 2001
+++ /usr/src/crypto/openssh/session.c.PIPE_PATCH Sun Feb 4 10:01:58 2001
@@ -448,8 +448,6 @@
if (s == NULL)
fatal("do_exec_no_pty: no session");
- signal(SIGPIPE, SIG_DFL);
-
session_proctitle(s);
#ifdef USE_PAM
@@ -461,6 +459,8 @@
/* Child. Reinitialize the log since the pid has changed. */
log_init(__progname, options.log_level, options.log_facility, log_stderr);
+ signal(SIGPIPE, SIG_DFL);
+
/*
* Create a new session and process group since the 4.4BSD
* setlogin() affects the entire process group.
@@ -569,6 +569,8 @@
if ((pid = fork()) == 0) {
/* Child. Reinitialize the log because the pid has changed. */
log_init(__progname, options.log_level, options.log_facility, log_stderr);
+
+ signal(SIGPIPE, SIG_DFL);
/* Close the master side of the pseudo tty. */
close(ptyfd);
--
Christopher Davis * <ckd-sig@ckdhr.com> * <URL:http://www.ckdhr.com/ckd/>
Put location information in your DNS! <URL:http://www.ckdhr.com/dns-loc/>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?w4bss9e3y2.fsf>
