This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Please test latest developer snapshot


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]