On Fri, Dec 21, 2001 at 10:22:41AM -0800, James Morrison wrote:
> --- Adam Olsen <[EMAIL PROTECTED]> wrote:
> > There's two ways for an app to support gzipped files:
> > a) within the app itself, by recognising files with a .gz extension
> 
>         This is bad, extensions should not be trusted.  Magic can
> be used to determine if a file is compressed, and if so what library
> function
> to call to decompress it.  There probably should be a hurd library to
> do this
> stuff so at some point we would be able to run both gzipped binaries
> and bzip2'd
> binaries.

I hadn't thought about magic yet. Writing a library to check the types 
and a program/translator which associates translators with different
types is a good way to do it. Running gzippped and bzip2'd binaries is
already supported in exec IIRC.

Jeroen Dekkers
-- 
Jabber supporter - http://www.jabber.org Jabber ID: [EMAIL PROTECTED]
Debian GNU supporter - http://www.debian.org http://www.gnu.org
IRC: [EMAIL PROTECTED]

Attachment: msg02452/pgp00000.pgp
Description: PGP signature

Reply via email to