Don't mess with the target of a file permission.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1196852 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java b/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java
index ea190c7..4df53f2 100644
--- a/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java
+++ b/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java
@@ -336,48 +336,7 @@
                     Permission source = createPermission(new PermissionInfo(
                         FilePermission.class.getName(), name,
                         m_permissionInfos[i].getActions()), targetClass);
-                    postfix = "";
-                    name = target.getName();
-                    if (!"<<ALL FILES>>".equals(name))
-                    {
-                        if (name.endsWith("*") || name.endsWith("-"))
-                        {
-                            postfix = name.substring(name.length() - 1);
-                            name = name.substring(0, name.length() - 1);
-                        }
-                        if (!(new File(name)).isAbsolute())
-                        {
-                            BundleContext context = (BundleContext) AccessController
-                                .doPrivileged(new PrivilegedAction()
-                                {
-                                    public Object run()
-                                    {
-                                        return bundle.getBundleContext();
-                                    }
-                                });
-                            if (context == null)
-                            {
-                                break;
-                            }
-                            name = m_action.getAbsolutePath(new File(context
-                                .getDataFile(""), name));
-                        }
-                        if (postfix.length() > 0)
-                        {
-                            if ((name.length() > 0) && !name.endsWith("/"))
-                            {
-                                name += "/" + postfix;
-                            }
-                            else
-                            {
-                                name += postfix;
-                            }
-                        }
-                    }
-                    Permission realTarget = createPermission(
-                        new PermissionInfo(FilePermission.class.getName(),
-                            name, target.getActions()), targetClass);
-                    if (source.implies(realTarget))
+                    if (source.implies(target))
                     {
                         return true;
                     }