This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit ce3b3e624a6230305658b7021d9b89130fcb8497 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Sep 19 14:57:55 2024 +0100 Fix logic of delete tests --- .../authenticator/jaspic/PersistentProviderRegistrations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/authenticator/jaspic/PersistentProviderRegistrations.java b/java/org/apache/catalina/authenticator/jaspic/PersistentProviderRegistrations.java index 2766807d9d..875ab1cff0 100644 --- a/java/org/apache/catalina/authenticator/jaspic/PersistentProviderRegistrations.java +++ b/java/org/apache/catalina/authenticator/jaspic/PersistentProviderRegistrations.java @@ -98,13 +98,13 @@ public final class PersistentProviderRegistrations { // Remove left over temporary files if present if (configFileOld.exists()) { - if (configFileOld.delete()) { + if (!configFileOld.delete()) { throw new SecurityException(sm.getString("persistentProviderRegistrations.existsDeleteFail", configFileOld.getAbsolutePath())); } } if (configFileNew.exists()) { - if (configFileNew.delete()) { + if (!configFileNew.delete()) { throw new SecurityException(sm.getString("persistentProviderRegistrations.existsDeleteFail", configFileNew.getAbsolutePath())); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org