From owner-freebsd-hackers Sat Jan 17 13:08:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA22902 for hackers-outgoing; Sat, 17 Jan 1998 13:08:58 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from freebsd1.cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA22894 for ; Sat, 17 Jan 1998 13:08:46 -0800 (PST) (envelope-from jb@freebsd1.cimlogic.com.au) Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.8.7/8.8.7) id IAA15682; Sun, 18 Jan 1998 08:14:22 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199801172114.IAA15682@freebsd1.cimlogic.com.au> Subject: Re: dladdr hax In-Reply-To: <199801172050.MAA07904@austin.polstra.com> from John Polstra at "Jan 17, 98 12:50:21 pm" To: jdp@polstra.com (John Polstra) Date: Sun, 18 Jan 1998 08:14:22 +1100 (EST) Cc: hasty@rah.star-gate.com, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk John Polstra wrote: > If you will come up with (or suggest) a solution to finding the > pathname of the main program, then I will add that into my version and > commit it. And puhleeeze, don't suggest the hack of searching each of > the directories in $PATH for argv[0]. What about adding some code to the namei() interface and set aside a copy of the path in execve() (in kern_exec.c)? Regards, -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.org CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137