Bug 230327

Summary: cleanlinks -h: no help, but deletes all symlinks!
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: imakeAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 7CC: mmahut
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-01 22:07:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2007-02-28 12:15:02 UTC
cleanlinks can delete dangling symlinks and empty directories.

Great! Let's see how it works

[root@box etc]# cleanlinks -h
./rc4.d is a dangling symlink, removing
./rc5.d is a dangling symlink, removing
./init.d is a dangling symlink, removing
./rc2.d is a dangling symlink, removing
./rc3.d is a dangling symlink, removing
./rc1.d is a dangling symlink, removing
[snip]

Ouch.

cleanlinks should do two things differently:
1. It should barf if an unknown option is passed.
2. It should give help if -h is passed.

Comment 1 Marek Mahut 2007-06-30 11:22:39 UTC
Indeed, this script don't follow the POSIX standarts. No --help or --version are
available. Maybe it's a good idea to contact XFree86 project about it. 

Comment 2 Need Real Name 2007-07-01 22:07:46 UTC
Is cleanlinks in F7?

Comment 3 Need Real Name 2007-07-01 22:08:45 UTC
> Is cleanlinks in F7?

Please ignore this.