felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Herko ter Horst <he...@terhorst.net>
Subject Bug (+fix) in SecureAction
Date Sun, 05 Mar 2006 19:17:53 GMT
Hi,

I ran into this issue (a copy/paste mistake) while trying to run Felix 
from WebStart. The issue doesn't seem to occur when running normally. 
Patch is below.

Cheers,

Herko


Index: src/main/java/org/apache/felix/framework/util/SecureAction.java
===================================================================
--- src/main/java/org/apache/felix/framework/util/SecureAction.java 
(revision 383309)
+++ src/main/java/org/apache/felix/framework/util/SecureAction.java 
(working copy)
@@ -208,7 +208,7 @@
          {
              try
              {
-                m_actions.set(Actions.MAKE_DIRECTORY_ACTION, file);
+                m_actions.set(Actions.LIST_DIRECTORY_ACTION, file);
                  return (File[]) 
AccessController.doPrivileged(m_actions, m_acc);
              }
              catch (PrivilegedActionException ex)

Mime
View raw message