From 079a549c4a6a41a68db78ac516a07697633a8b7b Mon Sep 17 00:00:00 2001 From: bad Date: Fri, 29 Jul 2022 01:08:52 +0200 Subject: [PATCH] Only include executable files in loaded plugins --- rizin-with-plugin-support.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rizin-with-plugin-support.nix b/rizin-with-plugin-support.nix index 00bbb02..18abb2d 100644 --- a/rizin-with-plugin-support.nix +++ b/rizin-with-plugin-support.nix @@ -13,7 +13,7 @@ let buildInputs = [makeWrapper]; postBuild = '' wrapProgramArgs=() - for plugin in ${plugins_path}/lib/rizin/plugins/*; do + for plugin in $(find -L lib/rizin/plugins -type f -executable); do wrapProgramArgs+=("--add-flags") wrapProgramArgs+=("-l") wrapProgramArgs+=("--add-flags")