Bug 10019 - "cleanlinks" removes non-dangling absolute symlinks
Summary: "cleanlinks" removes non-dangling absolute symlinks
Alias: None
Product: xorg
Classification: Unclassified
Component: Build/Monolithic (show other bugs)
Version: 7.2 (2007.02)
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard: 2011BRB_Reviewed
Keywords: patch
Depends on:
Reported: 2007-02-18 08:37 UTC by Brice Goglin
Modified: 2018-06-12 19:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

proposed cleanlinks (593 bytes, text/plain)
2007-12-31 07:23 UTC, Fabio Correa
no flags Details

Description Brice Goglin 2007-02-18 08:37:30 UTC
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.
Comment 1 Daniel Stone 2007-02-27 01:36:30 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 2 Fabio Correa 2007-12-31 07:23:48 UTC
Created attachment 13436 [details]
proposed cleanlinks

The suggested cleanlinks script includes the apropriate handling of absolute symlinks and some code cleanup.
Comment 3 Jeremy Huddleston Sequoia 2011-10-03 00:18:06 UTC
imake is dead.  Do you still care about this?  If so, bug someone to review it. 
 If not, I'll close it as WONTFIX.
Comment 4 Adam Jackson 2018-06-12 19:07:32 UTC
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.