[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bugs #9185] rm calls access() but it shouldn't
From: |
Jim Meyering |
Subject: |
Re: [bugs #9185] rm calls access() but it shouldn't |
Date: |
Wed, 02 Jun 2004 18:42:14 +0200 |
For the benefit of others on this list, here's a copy of Tim's report:
"Tim Waugh" <address@hidden> wrote:
> /**************************************************************************/
> [bugs #9185] Full Item Snapshot:
>
> URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9185>
> Project: GNU Core Utilities
> Submitted by: Tim Waugh
> On: Wed 06/02/2004 at 11:52
>
> Category: None
> Severity: 5 - Average
> Item Group: None
> Resolution: None
> Assigned to: None
> Status: Open
>
>
> Summary: rm calls access() but it shouldn't
>
> Original Submission: See:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=124699
>
> The rm program calls access() on the target file before calling unlink() on
> it. This is unnecessary (unlink should tell you everything you need to know),
> and may hang rm (it may be a symlink pointing to something on an unreachable
> NFS server).
> To reproduce the problem:
> 1. Mount a directory off an NFS server without any special options
> (so no -ointr, for example)
> 2. Make a symlink from somewhere outside that mountpoint to
> somewhere inside that mountpoint.
> 3. Power off the NFS server
> 4. Try and rm the symlink.
>
> For detailed info, follow this link:
> <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9185>
- Re: [bugs #9185] rm calls access() but it shouldn't,
Jim Meyering <=