Re: GNU/Linux stance by Richard Stallman

david parsons (o.r.c@p.e.l.l.p.o.r.t.l.a.n.d.o.r.u.s)
29 Mar 1999 00:29:57 -0800


In article <linux.kernel.7dls0b$uq2$1@alfie.demon.co.uk>,
Nick Holloway <Nick.Holloway@alfie.demon.co.uk> wrote:
>o.r.c@p.e.l.l.p.o.r.t.l.a.n.d.o.r.u.s (david parsons) writes:
>> Alexander Viro <viro@math.psu.edu> wrote:
>> >Ahem... Forgot to count ELF signature and headers, didn't you? Minimal
>> >/bin/true being #!/bin/sh - 10 bytes (you'll need newline at the end).
>>
>> Nope. Zero bytes.
>>
>> $ sync > /tmp/true
>> $ chmod +x /tmp/true
>> $ if /tmp/true; then echo "True is true"; fi
>> True is true
>
>ObKernel: the kernel does not fall back to using /bin/sh to execute files
>
> $ ls -l /tmp/true
> -rwxr-xr-x 1 alfie alfie 0 Mar 28 19:13 /tmp/true
> $ cat x.c
> main () { execl("/tmp/true","true"); perror("true"); }
> $ gcc x.c
> $ ./a.out
> true: Exec format error

Well, that sucks. That means that I have to resort to wasting
FIFTY-SIX WHOLE BYTES to have /bin/true work properly in all
situations (yeah, I could probably make it smaller, but to do
that would mean that I'd need to do it in assembly rather than
C.)

____
david parsons \bi/ Now to find a filesystem that stuffs data into
\/ the inode, because every block is sacred.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/