Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2002 22:16:51 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Jos Backus <jos@catnook.com>
Cc:        Bruce Evans <bde@zeta.org.au>, freebsd-current@FreeBSD.ORG, des@FreeBSD.ORG
Subject:   Re: zsh exits upon ^C after su'ing to root with zsh as its shell
Message-ID:  <20020529031651.GA9334@dan.emsphone.com>
In-Reply-To: <20020529030006.GB22504@lizzy.catnook.com>
References:  <20020528224503.GE11876@lizzy.catnook.com> <20020529105048.W23368-100000@gamplex.bde.org> <20020529030006.GB22504@lizzy.catnook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 28), Jos Backus said:
> On Wed, May 29, 2002 at 10:55:54AM +1000, Bruce Evans wrote:
> > Here is some old mail about this.  Sorry I slowed down Alexander's
> > fixes.
> 
> Thanks Bruce. It sounds like we'll have to live with this problem for
> now?

If you're not concerned about accounting (or whatever deleting a
credential ends up doing), you can use this hack.  My machine's still
running.

Index: su.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/su/su.c,v
retrieving revision 1.49
diff -b -u -p -r1.49 su.c
--- su.c	6 Mar 2002 12:46:56 -0000	1.49
+++ su.c	29 Mar 2002 19:01:47 -0000
@@ -309,7 +309,7 @@ main(int argc, char *argv[])
 	 */
 
 	statusp = 1;
-	child_pid = fork();
+	child_pid = 0;
 	switch (child_pid) {
 	default:
 		while ((ret_pid = waitpid(child_pid, &statusp, WUNTRACED)) != -1) {


-- 
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529031651.GA9334>