From owner-freebsd-hackers Thu Apr 13 18:42:16 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id DADE437BE20 for ; Thu, 13 Apr 2000 18:42:12 -0700 (PDT) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by relay.butya.kz with local-esmtp (Exim 3.13 #1) id 12fv7T-000AKl-00; Fri, 14 Apr 2000 08:42:03 +0700 Date: Fri, 14 Apr 2000 08:42:02 +0700 (ALMST) From: Boris Popov To: Murray Stokely Cc: freebsd-hackers@freebsd.org Subject: Re: image_params.fname In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 13 Apr 2000, Murray Stokely wrote: > I'm having trouble displaying the value of image_params->fname in > this small snippet of code from imgact_elf.c. When the system execs > an unbranded elf binary it doesn't tell you the name of the actual > file that you tried to exec, which can be very annoying when you run > an obfuscated shell-installer for a Linux application. Anyway this > code always ends up with nonsense in the path; what am I doing wrong? fname field is never filled in the code. Field 'uap' can be more useful. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message