1
Description: Allow loading of ICC profiles when jre/lib/cmm is a
2
symlink by disabling call to isChildOf(f, dir) in getStandardProfileFile
3
and getProfileFile methods.
5
isChildOf method try to ensures f.getCanonicalPath start with
6
dir.getCanonicalPath but, on openjdk-6, dir.getCanonicalPath
7
will resolve to realpath and so won't match.
9
It should fix "Cannot open file sRGB.pf" errors.
10
Author: Damien Raude-Morvan <drazzib@debian.org>
11
Last-Update: 2012-05-18
12
Bug-Debian: http://bugs.debian.org/641530
15
Index: openjdk/jdk/src/share/classes/java/awt/color/ICC_Profile.java
16
===================================================================
17
--- openjdk/jdk/src/share/classes/java/awt/color/ICC_Profile.java.orig
18
+++ openjdk/jdk/src/share/classes/java/awt/color/ICC_Profile.java
21
fullPath = dir + File.separatorChar + fileName;
22
f = new File(fullPath);
23
- if (!isChildOf(f, dir)) {
30
File.separatorChar + "lib" + File.separatorChar + "cmm";
31
String fullPath = dir + File.separatorChar + fileName;
32
File f = new File(fullPath);
33
- return (f.isFile() && isChildOf(f, dir)) ? f : null;
34
+ return (f.isFile()) ? f : null;