lkml.org 
[lkml]   [1999]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: GNU/Linux stance by Richard Stallman
Date
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
$

--
`O O' | Home: Nick.Holloway@alfie.demon.co.uk http://www.alfie.demon.co.uk/
// ^ \\ | Work: Nick.Holloway@parallax.co.uk

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.112 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site