Bug reported to the Debian BTS by Florian Ernst about 3,5 years ago, still applies. According to its manpage "cleanlinks" does only remove dangling symlinks and empty directories, so I'd expect it not to remove a symlink to an existing unempty directory. But: $ ls -Al lrwxrwxrwx 1 fernst fernst 5 2003-08-06 18:22 home -> /home/ lrwxrwxrwx 1 fernst fernst 21 2003-08-06 18:22 .xinitrc -> /home/fernst/.xinitrc* $ cleanlinks ./home is a dangling symlink, removing Removing empty directories ... $ ls -Al lrwxrwxrwx 1 fernst fernst 21 2003-08-06 18:22 .xinitrc -> /home/fernst/.xinitrc* Some patches have been proposed on the Debian BTS (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=204363) without people being able to decide what's the best. As a result, a patch to update the manpage about this bug has been provided too. Feel free to choose any solution.
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Created attachment 13436 [details] proposed cleanlinks The suggested cleanlinks script includes the apropriate handling of absolute symlinks and some code cleanup.
imake is dead. Do you still care about this? If so, bug someone to review it. If not, I'll close it as WONTFIX.
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.