mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 07:26:42 +00:00
Rabin2 Xtr: Add error message if none of the plugins can extract bins from the file.
This commit is contained in:
parent
27459b7deb
commit
4562283f66
@ -930,13 +930,21 @@ int main(int argc, char **argv) {
|
||||
if (action & ACTION_EXTRACT) {
|
||||
RListIter *iter;
|
||||
RBinXtrPlugin *xtr;
|
||||
bool supported = false;
|
||||
|
||||
r_list_foreach (bin->binxtrs, iter, xtr) {
|
||||
if (xtr->check (bin)) {
|
||||
// xtr->extractall (bin);
|
||||
rabin_extract ((!arch && !arch_name && !bits));
|
||||
supported = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!supported) {
|
||||
// if we reach here, no supported xtr plugins found
|
||||
eprintf ("Cannot extract bins from '%s'. No supported plugins found!\n", bin->file);
|
||||
}
|
||||
}
|
||||
if (op && action & ACTION_OPERATION)
|
||||
rabin_do_operation (op);
|
||||
|
Loading…
Reference in New Issue
Block a user