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
Date: Fri, 26 Aug 2005 14:32:44 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Problem with sh/bash and snapshot cygwin1-20050825.dll
Message-ID: <20050826123244.GA23422@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <430E9B0B.8040303@scytek.de> <20050826052618.GC4087@trixie.casa.cgf.cx> <20050826090717.GB21203@calimero.vinschen.de> <430F0849.8040002@byu.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <430F0849.8040002@byu.net>
User-Agent: Mutt/1.4.2i

On Aug 26 06:17, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Corinna Vinschen on 8/26/2005 3:07 AM:
> >>This is apparently due to Corinna's latest patch which attempts to get
> >>realpath working.  bash is calling cygwin_convert_to_full_posix_path
> >>on the /cygdrive/... above and the return value now is different than
> >>it used to be.
> >>
> > 
> > Sigh, the "morning support team" will have a look today.
> 
> While you're at it, fix realpath(NULL, buf) to set buf[0]='\0', instead of
> leaving garbage there.

http://cygwin.com/acronyms/#PTC

> Also, realpath("//..", buf) should be "//", not "/", since it is its own
> root (there is no way to make // a subdirectory of /).  And when pwd is
> //, realpath("..", buf) is correctly "//", but realpath("../..", buf) is
> mistakenly "/".

http://cygwin.com/acronyms/#PTC

> I also noticed that realpath("c:..", buf) now returns "c:", rather than
> "/cygdrive" - I guess it comes down to the choice of whether cygwin has 2
> roots or 28 roots.  I prefer 2 roots (so that the parent directory of any
> drive letter is the cygdrive prefix), but maybe I can be convinced that 28
> is okay.  But whatever the choice is, it should be consistent - right now
> realpath("c:/..", buf) is failing with ENOENT, even though it should have
> the same result as realpath("c:..", buf).

http://cygwin.com/acronyms/#PTC

> Also, readlink("linktofile/x", buf) is now failing (good), but with
> ENOENT, instead of the proper ENOTDIR.

That's not true.  I just checked it again.  Besides that, I wasn't
finished with realpath anyway.


Thanks for the friendly reminders,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/

