From b1fe3cf2a99b29a20f3d603c5ea8f3f9f9b71f27 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sat, 27 Apr 2019 19:56:55 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=97=D0=B0=D0=B1=D1=8B=D1=82=D0=B0?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B2=20verifyHDir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/ru/gravit/launcher/client/ClientLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java index 604537bd..686df2cc 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java @@ -552,7 +552,7 @@ public static void verifyHDir(Path dir, HashedDir hdir, FileNameMatcher matcher, if(v.getType().equals(HashedEntry.Type.FILE)) isFoundFile.set(true); LogHelper.error("Mismatch %s", e); }); - throw new SecurityException(String.format("Forbidden modification: '%s'", IOHelper.getFileName(dir))); + if(isFoundFile.get()) throw new SecurityException(String.format("Forbidden modification: '%s'", IOHelper.getFileName(dir))); } }