diff options
author | Robert de Bath <rdebath@poboxes.com> | 1996-11-03 22:33:35 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:33:35 +0200 |
commit | c218c617b5be443b7968308506969ad2b726d73c (patch) | |
tree | 0051f396af56133d24fcf2ab757fabc78c1a09bf /elksemu/Kernel_patch | |
parent | 0936b9aeab611665645a4e6bafaded7ca76dd189 (diff) | |
parent | 0d2fbe9b1bd284ce2cad55be17e8f2c896031a25 (diff) | |
download | dev86-c218c617b5be443b7968308506969ad2b726d73c.tar.gz |
Import Dev86src-0.0.8.tar.gzv0.0.8
Diffstat (limited to 'elksemu/Kernel_patch')
-rw-r--r-- | elksemu/Kernel_patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elksemu/Kernel_patch b/elksemu/Kernel_patch index cc4ca40..1a9d93e 100644 --- a/elksemu/Kernel_patch +++ b/elksemu/Kernel_patch @@ -13,7 +13,7 @@ If you are using kernel 1.3.* or later try the module: binfmt_elks.o +#ifndef NO_ELKSEMU + /* What a horrible hack! :-) */ + if ((bprm.buf[0] == 1) && (bprm.buf[1] == 3) && -+ (bprm.buf[2] == 0x20) && (bprm.buf[3] == 4)) ++ (bprm.buf[2] == 0x20 || bprm.buf[2] == 0x10) && (bprm.buf[3] == 4)) + memcpy(bprm.buf, "#!/lib/elksemu\n", 16); +#endif if ((bprm.buf[0] == '#') && (bprm.buf[1] == '!') && (!sh_bang)) { |