GNOME Bugzilla – Bug 159661
Symlinks in the root directory are incorrectly resolved
Last modified: 2004-12-22 21:47:04 UTC
Create a path from / with a relative symlink in it. For example: cd / mkdir -p a/b/c ln -s a/b . cd a ln -s b/c . Now place any picutre in /a/b/c and navigate through it with gthumb. Although /a/b/c and /a/c will display thumbnails correctly /b/c will not (the holding images are never replaced). This is a real problem for me since on my machine /home is a link to usr/local/home meaning I unable to see any thumbnails in my home directory (and for the same reason the comments for my images have been orphaned).
Created attachment 34198 [details] [review] A very-likely-broken patch that works for me. This problem is due to a bug in resolve_all_symlinks. The symlink resolver converts /home into /home/usr/local/home rather than /usr/local/home. When the error is noticed that path is converted back to /home and we try again (eventually reaching the 32 symlink limit and giving up). I have fixed this problem for my own machine by resolving against the symlinks parent (/ in this case) rather than the link itself. This fixes the problem without causing any regressions in the /a/b/c case above.
Fixed now, thank you.