mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 22:29:48 +00:00
37fecf7c0c
* Fix uninitialized shstrtab segfault in r_bin_elf * Do not create new objects unnecesarily in r_core_magic * Handle length argument in pb command * Fix ps command * @@ now prefixes each line with the offset (useful for search) - can be problematic when used with macros > / lib > ps @@ lib* * Huge refactoring in r_magic, now using the r2 coding standards - Use r_magic_new() and _free() instead of open/close - Reduced -1KLOC
11 lines
368 B
Plaintext
11 lines
368 B
Plaintext
This implementation of file(1) has been taken from OpenBSD,
|
|
I have removed the elf part which reduces more than 1KLOC.
|
|
I have also cleaned up the code in order to fix some warnings
|
|
and integrate with r2 syntax. magic_ api is now r_magic_
|
|
|
|
--pancake
|
|
|
|
$ cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs get src/usr.bin/file
|
|
|
|
* understand and document how conditional works
|