Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Reply-To: Cygwin List <cygwin@cygwin.com>
Message-Id: <6.2.1.2.0.20050928205535.044835d8@pop.prospeed.net>
Date: Wed, 28 Sep 2005 20:59:59 -0400
To: cygwin@cygwin.com
From: Larry Hall <lh-no-personal-replies-please@cygwin.com>
Subject: Re: bug in rmdir(2)
In-Reply-To: <20050928230231.GF26582@trixie.casa.cgf.cx>
References: <092820052031.26647.433AFDB9000034B50000681722073000330A050E040D0C079D0A@comcast.net>  <6.2.1.2.0.20050928163815.044348e0@pop.prospeed.net>  <20050928230231.GF26582@trixie.casa.cgf.cx>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

At 07:02 PM 9/28/2005, you wrote:
>On Wed, Sep 28, 2005 at 04:46:45PM -0400, Larry Hall wrote:
>>At 04:31 PM 9/28/2005, you wrote:
>>>POSIX requires resolving a filename with a trailing slash as
>>>though . were implicitly present, and requires rmdir(2) to fail
>>>with EINVAL if the final component is '.'.  Therefore, both of
>>>these cases should fail rather than removing the directory:
>>>
>>>$ mkdir a b
>>>$ rmdir a/ b/.
>>>$ ls a b      # Oops, rmdir("a/") and rmdir("b/.") incorrectly succeeded
>>>ls: a: No such file or directory
>>>ls: b: No such file or directory
>>
>>
>>But that conflicts with Windows semantics, doesn't it?  If this is important 
>>enough for 'rmdir', I suppose you could patch it to give you the behavior 
>>you describe.  But making Cygwin work this way internally is playing with
>>the already complex path processing code.  I can't see the gain to support 
>>this corner case and slow down everything else.
>
>LARRY!  LARRY!  It's POSIX!  It's POSIX, I tell you man!  Are you daft?
>We don't argue with POSIX!


Of course.  What was I thinking?   Now everybody click your heals together
and say "There's nothing like POSIX.  There's nothing like POSIX..." ;-)




--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

