... | ... |
@@ -490,10 +490,9 @@ int cli_scanmacho(int fd, cli_ctx *ctx, struct cli_exe_info *fileinfo) |
490 | 490 |
} |
491 | 491 |
} |
492 | 492 |
|
493 |
-int cli_machoheader(int fd, struct cli_exe_info *fileinfo) |
|
493 |
+int cli_machoheader(struct F_MAP *map, struct cli_exe_info *fileinfo) |
|
494 | 494 |
{ |
495 |
-return CL_EFORMAT; /* FIXMEFMAP: avoids crashing on machoes for now */ |
|
496 |
- return cli_scanmacho(fd, NULL, fileinfo); |
|
495 |
+ return cli_scanmacho(map->fd, NULL, fileinfo); |
|
497 | 496 |
} |
498 | 497 |
|
499 | 498 |
int cli_scanmacho_unibin(int fd, cli_ctx *ctx) |
... | ... |
@@ -23,9 +23,10 @@ |
23 | 23 |
|
24 | 24 |
#include "others.h" |
25 | 25 |
#include "execs.h" |
26 |
+#include "fmap.h" |
|
26 | 27 |
|
27 | 28 |
int cli_scanmacho(int fd, cli_ctx *ctx, struct cli_exe_info *fileinfo); |
28 |
-int cli_machoheader(int fd, struct cli_exe_info *fileinfo); |
|
29 |
+int cli_machoheader(struct F_MAP *map, struct cli_exe_info *fileinfo); |
|
29 | 30 |
int cli_scanmacho_unibin(int fd, cli_ctx *ctx); |
30 | 31 |
|
31 | 32 |
#endif |