delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/21/10:21:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4D6282CF.1000606@towo.net>
Date: Mon, 21 Feb 2011 16:20:47 +0100
From: Thomas Wolff <towo AT towo DOT net>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11 ThunderBrowse/3.3.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Please test latest developer snapshot
References: <20110217120400 DOT GB29762 AT calimero DOT vinschen DOT de> <4D600C0A DOT 9080305 AT etr-usa DOT com> <4D6273C4 DOT 9050406 AT redhat DOT com>
In-Reply-To: <4D6273C4.9050406@redhat.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Am 21.02.2011 15:16, schrieb Eric Blake:
> On 02/19/2011 11:29 AM, Warren Young wrote:
>   
>> On 2/17/2011 5:04 AM, Corinna Vinschen wrote:
>>     
>>> - Reintroduce the ability to delete an empty directory which is the
>>>    current working directory of the same or another Cygwin process.
>>>       
>> I don't see that.  Testcase:
>>
>>     $ mkdir foo
>>     $ cd foo
>>     $ rmdir .
>>     rmdir: failed to remove `.': Invalid argument
>>     
> POSIX doesn't allow rmdir(2) to succeed if the last component is '.'.
> You have to use rmdir ../foo instead.
>   
And this is not an artificial limitation but there is no way that this
could conceivably work.
By Unix design, removing a file or directory basically means removing
its entry from its parent directory, so it is not an operation on the
file in the first place (or on the target directory in this case).
The parent directory is obviously needed by design, thus "." is not
something that could ever be removed (from where?).
Thomas

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019