diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-01-19 17:54:57 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-01-19 17:54:57 +0000 |
commit | 12fe641ea8c8836df2c10b83bf985c7021dcd54d (patch) | |
tree | eff556a7cae59d77d97c185cc78947877d9c3b06 /sys/compat/linux | |
parent | 9f1866c3e0efe0c56d0d5387bcaf845852f74f56 (diff) |
redo (w/ proper changes everywhere ;):
take interp[MAXPATHLEN] off the stack. from mickey, ok otto
while here, switch above from malloc to pool, remove stupid casts
tedu@ miod@ ok
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c index b96be60a26b..ae096b470a5 100644 --- a/sys/compat/linux/linux_exec.c +++ b/sys/compat/linux/linux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_exec.c,v 1.24 2005/12/30 19:46:55 miod Exp $ */ +/* $OpenBSD: linux_exec.c,v 1.25 2006/01/19 17:54:52 mickey Exp $ */ /* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */ /*- @@ -485,7 +485,7 @@ linux_elf_probe(p, epp, itp, pos, os) brand = elf32_check_brand(eh); if (brand && strcmp(brand, "Linux")) return (EINVAL); - if (itp[0]) { + if (itp) { if ((error = emul_find(p, NULL, linux_emul_path, itp, &bp, 0))) return (error); if ((error = copystr(bp, itp, MAXPATHLEN, &len))) |