From 446acf2181bdb4901d1ac4527de2fe6bfa60d6b2 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sat, 27 Apr 2019 20:58:33 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=97=D0=B0=D0=BA=D0=BE=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=20=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D1=81=20verifyHDir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/launcher/client/ClientLauncher.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 274a2c41..3609fe38 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/ClientLauncher.java @@ -543,7 +543,7 @@ public static void verifyHDir(Path dir, HashedDir hdir, FileNameMatcher matcher, HashedDir.Diff diff = hdir.diff(currentHDir, matcher); if (!diff.isSame()) { - AtomicBoolean isFoundFile = new AtomicBoolean(false); + /*AtomicBoolean isFoundFile = new AtomicBoolean(false); diff.extra.walk(File.separator, (e,k,v) -> { if(v.getType().equals(HashedEntry.Type.FILE)) { LogHelper.error("Extra file %s", e); isFoundFile.set(true); } else LogHelper.error("Extra %s", e); @@ -552,7 +552,8 @@ public static void verifyHDir(Path dir, HashedDir hdir, FileNameMatcher matcher, if(v.getType().equals(HashedEntry.Type.FILE)) { LogHelper.error("Mismatch file %s", e); isFoundFile.set(true); } else LogHelper.error("Mismatch %s", e); }); - if(isFoundFile.get()) 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))); } }