Comment 2 for bug 412157

Revision history for this message
xtknight (xt-knight) wrote :

This happens because I have a /usr/share/color/icc directory looking like this:

andy@bloomfield:/usr/share/color/icc$ ls -al
total 6400
drwxr-xr-x 2 root root 4096 2009-08-11 16:55 .
drwxr-xr-x 4 root root 4096 2009-08-11 16:48 ..
-rw-r--r-- 1 root root 540 2005-08-04 19:39 ECI-RGB.V1.0.icc
-rw-r--r-- 1 root root 225824 2005-08-02 05:45 Fogra27L.icm
-rw-r--r-- 1 root root 1526728 2005-08-04 19:39 ISOcoated.icc
-rw-r--r-- 1 root root 1528264 2005-08-04 19:39 ISOuncoated.icc
-rw-r--r-- 1 root root 1528312 2005-08-04 19:39 ISOuncoatedyellowish.icc
-rw-r--r-- 1 root root 1526792 2005-08-04 19:39 ISOwebcoated.icc
-rw-r--r-- 1 root root 17688 2009-07-31 18:18 l227wt.icc
lrwxrwxrwx 1 root root 15 2009-07-29 03:21 lcd2690wuxi.icc -> LCD2690WUXi.icc
lrwxrwxrwx 1 root root 15 2009-07-29 03:21 lcd2690wuxi.ICC -> LCD2690WUXi.icc
-rw-r--r-- 1 root root 1644 2009-07-31 19:44 LCD2690WUXi.icc
lrwxrwxrwx 1 root root 15 2009-07-29 03:20 LCD2690WUXi.ICC -> LCD2690WUXi.icc
lrwxrwxrwx 1 root root 15 2009-07-29 03:20 LCD2690WUXI.ICC -> LCD2690WUXi.icc
lrwxrwxrwx 1 root root 15 2009-07-29 03:22 lcd2690wuxi.icm -> LCD2690WUXi.icc
lrwxrwxrwx 1 root root 15 2009-07-29 03:22 lcd2690wuxi.ICM -> LCD2690WUXi.icc
lrwxrwxrwx 1 root root 15 2009-07-29 03:22 LCD2690WUXi.ICM -> LCD2690WUXi.icc
lrwxrwxrwx 1 root root 15 2009-07-29 03:22 LCD2690WUXI.ICM -> LCD2690WUXi.icc
-rw-r--r-- 1 root root 1052 2005-08-04 19:39 LStar-RGB.icc
-rw-r--r-- 1 root root 157312 2005-08-04 19:40 PhotoGamutRGB_avg6c.icc
-rw-r--r-- 1 root root 3144 2005-08-01 19:43 sRGB.icm

That's not likely to happen on most PCs, but I do it because of case sensitivity. This patch should fix the problem.

However, I do wonder if the issue is deeper in Mono. Maybe that file enumeration function shouldn't even return symlinks if they are duplicates?

I'm subscribing ubuntu-main-sponsors because I believe this is a perfectly valid fix for the issue for now.