Bug 84001 - rm queries the user before removing symbolic links to unwriteable files
rm queries the user before removing symbolic links to unwriteable files
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: fileutils (Show other bugs)
8.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-02-10 16:44 EST by James Prewett
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-02-10 17:48:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description James Prewett 2003-02-10 16:44:44 EST
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
/bin/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:
Always

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:

fileutils-4.1.9-11
Comment 1 Tim Waugh 2003-02-10 17:48:31 EST
Seems to be fixed in coreutils in rawhide.

Note You need to log in before you can comment on or make changes to this bug.