From 410189fce6b2f1c9a5b4e78022e212dd8bb0773b Mon Sep 17 00:00:00 2001 From: Konloch Date: Tue, 13 Jul 2021 00:44:51 -0700 Subject: [PATCH] Security Manager Fix --- .../java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java index aff7a65d..f042df22 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java @@ -95,7 +95,7 @@ public class SecurityMan extends SecurityManager if (allow && blocking <= 0) { - if(silentExec == 1) + if(silentExec >= 1) System.out.println("Allowing exec: " + cmd); } else throw new SecurityException("BCV is awesome, blocking(" + blocking + ") exec " + cmd);