diff options
Diffstat (limited to 'elksemu/binfmt_elks.c')
-rw-r--r-- | elksemu/binfmt_elks.c | 6 |
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++; |