This is an automated email from the ASF dual-hosted git repository.

amccright pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 44ae16c  Fix doPriv security manager check
44ae16c is described below

commit 44ae16c06b3e7aabe0cc5df2aec351d0eadff5db
Author: Andy McCright <[email protected]>
AuthorDate: Thu Oct 1 22:05:06 2020 -0500

    Fix doPriv security manager check
    
    Signed-off-by: Andy McCright <[email protected]>
---
 core/src/main/java/org/apache/cxf/helpers/FileUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/cxf/helpers/FileUtils.java 
b/core/src/main/java/org/apache/cxf/helpers/FileUtils.java
index 4fff905..5d1fc10 100644
--- a/core/src/main/java/org/apache/cxf/helpers/FileUtils.java
+++ b/core/src/main/java/org/apache/cxf/helpers/FileUtils.java
@@ -334,7 +334,7 @@ public final class FileUtils {
     }
 
     public static boolean exists(File file) {
-        if (System.getSecurityManager() != null) {
+        if (System.getSecurityManager() == null) {
             return file.exists();
         }
         return AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> 
{

Reply via email to