From owner-cvs-all Mon Jun 21 17:50:54 1999 Delivered-To: cvs-all@freebsd.org Received: from adelphi.physics.adelaide.edu.au (adelphi.physics.adelaide.edu.au [129.127.36.247]) by hub.freebsd.org (Postfix) with ESMTP id ABCCD1515F; Mon, 21 Jun 1999 17:50:42 -0700 (PDT) (envelope-from kkennawa@physics.adelaide.edu.au) Received: from bragg (bragg [129.127.36.34]) by adelphi.physics.adelaide.edu.au (8.8.8/8.8.8/UofA-1.5) with SMTP id KAA01702; Tue, 22 Jun 1999 10:20:39 +0930 (CST) Received: from localhost by bragg; (5.65/1.1.8.2/05Aug95-0227PM) id AA02005; Tue, 22 Jun 1999 10:21:59 +0930 Date: Tue, 22 Jun 1999 10:21:59 +0930 (CST) From: Kris Kennaway X-Sender: kkennawa@bragg To: Peter Wemm Cc: Jean-Marc Zucconi , hoek@freebsd.org, cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern imgact_gzip.c In-Reply-To: <19990621231649.336E375@overcee.netplex.com.au> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Tue, 22 Jun 1999, Peter Wemm wrote: > No, imgact_gzip has it's own a.out executable decoder hardwired into it and > this can't be easily changed to support ELF without a LOT of work. I half > wonder if it might be better to gzip -d the executable stream into some > sort of anon backed vnode and then pass that back into the exec system. That > way it would work for any supported format etc. That's a fancier way of how gzexe does it: when you gzexe a binary it compresses it and prepends a shell-script extracter to the data. When you run the script, it decompresses to /tmp, and runs from there. Kris > Cheers, > -Peter ----- "Never criticize anybody until you have walked a mile in their shoes, because by that time you will be a mile away and have their shoes." -- Unknown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message