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


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/


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