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: Problem with sh/bash and snapshot cygwin1-20050825.dll


-----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@byu.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/


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