From owner-freebsd-current Tue Apr 22 18:39:15 1997 Return-Path: <owner-current> Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA23941 for current-outgoing; Tue, 22 Apr 1997 18:39:15 -0700 (PDT) Received: from sovcom.relcom.ru (sovcom.relcom.ru [193.125.152.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA23927; Tue, 22 Apr 1997 18:39:07 -0700 (PDT) Received: by sovcom.relcom.ru id AA28465 (5.65.kiae-1 ); Wed, 23 Apr 1997 04:30:02 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Wed, 23 Apr 97 04:30:01 +0300 Received: (from ache@localhost) by nagual.ru (8.8.5/8.8.5) id FAA00503; Wed, 23 Apr 1997 05:28:59 +0400 (MSD) Date: Wed, 23 Apr 1997 05:28:56 +0400 (MSD) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.ru> To: Tor Egge <Tor.Egge@idi.ntnu.no> Cc: Bruce Evans <bde@zeta.org.au>, FreeBSD-current <current@freebsd.org>, dyson@freebsd.org Subject: Re: Recent vfork kernel changes broke csh & tcsh! In-Reply-To: <199704222300.BAA12591@pat.idt.unit.no> Message-Id: <Pine.BSF.3.96.970423052647.437B-100000@nagual.ru> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 23 Apr 1997, Tor Egge wrote: > ---- exec_shell_imgact in imgact_shell.c > > /* set argv[0] to point to original file name */ > suword(imgp->uap->argv, (int)imgp->uap->fname); Yes, this code directly modify child argv which father attempts to free later... We should copy argv somehow. Any ideas? -- Andrey A. Chernov <ache@null.net> http://www.nagual.ru/~ache/