summaryrefslogtreecommitdiff
path: root/elksemu/binfmt_elks.c
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1996-11-03 22:33:35 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:33:35 +0200
commitc218c617b5be443b7968308506969ad2b726d73c (patch)
tree0051f396af56133d24fcf2ab757fabc78c1a09bf /elksemu/binfmt_elks.c
parent0936b9aeab611665645a4e6bafaded7ca76dd189 (diff)
parent0d2fbe9b1bd284ce2cad55be17e8f2c896031a25 (diff)
downloaddev86-c218c617b5be443b7968308506969ad2b726d73c.tar.gz
Import Dev86src-0.0.8.tar.gzv0.0.8
Diffstat (limited to 'elksemu/binfmt_elks.c')
-rw-r--r--elksemu/binfmt_elks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elksemu/binfmt_elks.c b/elksemu/binfmt_elks.c
index 9c1ecd4..07babe4 100644
--- a/elksemu/binfmt_elks.c
+++ b/elksemu/binfmt_elks.c
@@ -23,9 +23,9 @@ static int do_load_elksaout(struct linux_binprm *bprm,struct pt_regs *regs)
int retval;
/* What a horrible hack! :-) */
- if ((bprm->buf[0] != 1) || (bprm->buf[1] != 3) ||
- (bprm->buf[2] != 0x20) || (bprm->buf[3] != 4) ||
- bprm->sh_bang)
+ if ((bprm->buf[0] != 1) || (bprm->buf[1] != 3) ||
+ (bprm->buf[2] != 0x20 && bprm->buf[2] != 0x10) ||
+ (bprm->buf[3] != 4) || bprm->sh_bang)
return -ENOEXEC;
bprm->sh_bang++;