From 58ee80d0ee618069bc0c49a458d85470a884b15d Mon Sep 17 00:00:00 2001 From: Rot127 <45763064+Rot127@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:41:20 +0000 Subject: [PATCH] Replace RZ_ASM_NOPLUGINS and RZ_BIN_NOPLUGINS with more general RZ_NOPLUGINS. (#3919) --- librz/main/rz-asm.c | 4 ++-- librz/main/rz-bin.c | 4 ++-- librz/main/rz-hash.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/librz/main/rz-asm.c b/librz/main/rz-asm.c index 8f10903e311..143d9cc689a 100644 --- a/librz/main/rz-asm.c +++ b/librz/main/rz-asm.c @@ -203,7 +203,7 @@ static int rasm_show_help(int v) { " If '-l' value is greater than output length, output is padded with nops\n" " If the last argument is '-' reads from stdin\n"); printf("Environment:\n" - " RZ_ASM_NOPLUGINS do not load shared plugins (speedup loading)\n" + " RZ_NOPLUGINS do not load shared plugins (speedup loading)\n" " RZ_ASM_ARCH same as rz-asm -a\n" " RZ_ASM_BITS same as rz-asm -b\n" " RZ_DEBUG if defined, show error messages and crash signal\n" @@ -477,7 +477,7 @@ static int print_assembly_output(RzAsmState *as, const char *buf, ut64 offset, u } static void __load_plugins(RzAsmState *as) { - char *tmp = rz_sys_getenv("RZ_ASM_NOPLUGINS"); + char *tmp = rz_sys_getenv("RZ_NOPLUGINS"); if (tmp) { free(tmp); return; diff --git a/librz/main/rz-bin.c b/librz/main/rz-bin.c index 4eeebbb264d..959f93b21e2 100644 --- a/librz/main/rz-bin.c +++ b/librz/main/rz-bin.c @@ -216,8 +216,8 @@ static int rabin_show_help(int v) { } if (v) { printf("Environment:\n" + " RZ_NOPLUGINS: # do not load shared plugins (speedup loading)\n" " RZ_BIN_LANG: e bin.lang # assume lang for demangling\n" - " RZ_BIN_NOPLUGINS: # do not load shared plugins (speedup loading)\n" " RZ_BIN_DEMANGLE=0:e bin.demangle # do not demangle symbols\n" " RZ_BIN_MAXSTRBUF: e bin.maxstrbuf # specify maximum buffer size\n" " RZ_BIN_STRFILTER: e bin.str.filter # rizin -qc 'e bin.str.filter=?" @@ -699,7 +699,7 @@ RZ_API int rz_main_rz_bin(int argc, const char **argv) { rz_core_init(&core); bin = core.bin; - if (!(tmp = rz_sys_getenv("RZ_BIN_NOPLUGINS"))) { + if (!(tmp = rz_sys_getenv("RZ_NOPLUGINS"))) { char *homeplugindir = rz_path_home_prefix(RZ_PLUGINS); char *plugindir = rz_path_system(RZ_PLUGINS); char *extraplugindir = rz_path_extra(RZ_PLUGINS); diff --git a/librz/main/rz-hash.c b/librz/main/rz-hash.c index aed67fa5eb5..951a68215ec 100644 --- a/librz/main/rz-hash.c +++ b/librz/main/rz-hash.c @@ -1170,7 +1170,7 @@ static bool lib_crypto_cb(RzLibPlugin *pl, void *user, void *data) { } static void hash_load_plugins(RzHashContext *ctx) { - char *tmp = rz_sys_getenv("RZ_ASM_NOPLUGINS"); + char *tmp = rz_sys_getenv("RZ_NOPLUGINS"); if (tmp) { free(tmp); return;