mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Забытая проверка в verifyHDir
This commit is contained in:
parent
63183873a5
commit
b1fe3cf2a9
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ public static void verifyHDir(Path dir, HashedDir hdir, FileNameMatcher matcher,
|
||||||
if(v.getType().equals(HashedEntry.Type.FILE)) isFoundFile.set(true);
|
if(v.getType().equals(HashedEntry.Type.FILE)) isFoundFile.set(true);
|
||||||
LogHelper.error("Mismatch %s", e);
|
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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue