ref: 3ca9ac70c4f41ff57617d4cfcf46caa304db9a01
parent: e3217c6f6a406d866238ce19bbb6d1aae17a71af
author: cinap_lenrek <[email protected]>
date: Thu Jul 9 04:51:38 EDT 2015
sysexec(): need () arround AOUT_MAGIC comparsion to handle #define hack on mips
--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -281,7 +281,7 @@
if(n <= 2)
error(Ebadexec);
magic = l2be(exec.magic);
- if(n == sizeof(Exec) && magic == AOUT_MAGIC){
+ if(n == sizeof(Exec) && (magic == AOUT_MAGIC)){
text = l2be(exec.text);
entry = l2be(exec.entry);
switch(magic){