MZ magic is supported on OS/2

This commit is contained in:
KO Myung-Hun 2015-05-12 14:09:21 +09:00
parent 07e5cadc54
commit 148c019595
1 changed files with 2 additions and 0 deletions

2
exec.c
View File

@ -970,7 +970,9 @@ scriptexec(struct op *tp, const char **ap)
(m == /* ECOFF_I386 */ 0x4C01) ||
(m == /* ECOFF_M68K */ 0x0150 || m == 0x5001) ||
(m == /* ECOFF_SH */ 0x0500 || m == 0x0005) ||
#ifndef __OS2__
(m == /* "MZ" */ 0x4D5A) ||
#endif
(m == /* gzip */ 0x1F8B) || (m == /* .Z */ 0x1F9D))
errorf("%s: not executable: magic %04X", tp->str, m);
nomagic: