From owner-freebsd-hackers Fri Jan 9 16:07:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA29181 for hackers-outgoing; Fri, 9 Jan 1998 16:07:49 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from damon.com (root@damon.com [207.170.114.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA29168 for ; Fri, 9 Jan 1998 16:07:36 -0800 (PST) (envelope-from dap@damon.com) Received: (from dap@localhost) by damon.com (8.8.3/8.8.3) id SAA25218; Fri, 9 Jan 1998 18:00:58 -0600 (CST) From: Damon Anton Permezel Message-Id: <199801100000.SAA25218@damon.com> Subject: Re: dladdr hax To: tlambert@primenet.com (Terry Lambert) Date: Fri, 9 Jan 1998 18:00:58 -0600 (CST) Cc: dap@damon.com, hasty@rah.star-gate.com, tlambert@primenet.com, nate@mt.sri.com, freebsd-hackers@FreeBSD.ORG In-Reply-To: <199801092252.PAA00624@usr04.primenet.com> from Terry Lambert at "Jan 9, 98 10:52:16 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk "Terry Lambert sez: " > > My understanding of it is that it requires the full path be kept by execve(). > Actually, this isn't true. It's pretty trivial to write and run a > dladdr using program on a solaris box. I just realized that on Solaris, it does appear to return argv[0]. This is why they put the hack in their wrapper scripts to attempt to pass the full path name to the shell, which will obligingly put it in argv[0]. OK. I concede that I am an idiot. Thankyou very much. Cheers, Damon.