Bug 84001

Summary: rm queries the user before removing symbolic links to unwriteable files
Product: [Retired] Red Hat Linux Reporter: James Prewett <download>
Component: fileutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-10 22:48:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Prewett 2003-02-10 21:44:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20030109

Description of problem:
/bin/rm behaves as if it is invoked as /bin/rm -i when removing symbolic links
to unwriteable files.

~$ which rm

~$ touch /tmp/xxx
~$ ln -s /tmp/xxx ./xxx
~$ chmod 000 /tmp/xxx
~$ ls -ld .
drwxr-xr-x   25 download users        2560 Feb 10 14:28 .
~$ rm ./xxx
rm: remove symbolic link `xxx'?

Please note that rm is not aliased to rm -i (nor is there a function, etc that
would be changing which command actually gets used).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. touch /tmp/xxx
2. ln -s /tmp/xxx ./xxx
3. chmod 000 /tmp/xxx
4. rm ./xxx

Actual Results:  I get the message:
rm: remove symbolic link `xxx'?

Expected Results:  symbolic link should have been removed without prompting me

Additional info:


Comment 1 Tim Waugh 2003-02-10 22:48:31 UTC
Seems to be fixed in coreutils in rawhide.