You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2020/11/03 16:48:46 UTC
[cxf] 10/16: Fix doPriv security manager check
This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a commit to branch 3.3.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit 027cbf3b997accdb8c8d63fdc15a781b38791584
Author: Andy McCright <j....@gmail.com>
AuthorDate: Thu Oct 1 22:05:06 2020 -0500
Fix doPriv security manager check
Signed-off-by: Andy McCright <j....@gmail.com>
(cherry picked from commit 44ae16c06b3e7aabe0cc5df2aec351d0eadff5db)
---
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 b847d5a..5ee0202 100644
--- a/core/src/main/java/org/apache/cxf/helpers/FileUtils.java
+++ b/core/src/main/java/org/apache/cxf/helpers/FileUtils.java
@@ -385,7 +385,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>) () -> {