delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/26/08:17:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <430F0849.8040002@byu.net>
Date: Fri, 26 Aug 2005 06:17:13 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem with sh/bash and snapshot cygwin1-20050825.dll
References: <430E9B0B DOT 8040303 AT scytek DOT de> <20050826052618 DOT GC4087 AT trixie DOT casa DOT cgf DOT cx> <20050826090717 DOT GB21203 AT calimero DOT vinschen DOT de>
In-Reply-To: <20050826090717.GB21203@calimero.vinschen.de>
X-IsSubscribed: yes

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

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

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).

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

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDDwhI84KuGfSFAYARArZ7AJ9PvI3MlwSUQzvg1iOZgqCVcYo/6QCgm6Hd
neL7LGSVue3CZGWL31UQf0U=
=wtLy
-----END PGP SIGNATURE-----

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

- Raw text -


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