Bug 395274 - Equinox returns valid bundle entries for invalid paths 
- avoid unnecessary call to getCononicalPath
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/DirBundleFile.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/DirBundleFile.java
index 890104a..e94db2c 100644
--- a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/DirBundleFile.java
+++ b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/DirBundleFile.java
@@ -94,7 +94,7 @@
 			}
 			// must do an extra check to make sure file is within the bundle (bug 320546)
 			if (checkInBundle) {
-				if (!canonicalFile.getPath().startsWith(BundleFile.secureAction.getCanonicalPath(basefile)))
+				if (!canonicalFile.getPath().startsWith(basefile.getPath()))
 					return null;
 			}
 		} catch (IOException e) {