Mail Archives: cygwin/2003/02/11/13:48:27
On Tue, Feb 11, 2003 at 11:13:06AM -0500, Robb, Sam wrote:
> > On Tue, Feb 11, 2003 at 12:08:46AM -0500, Robb, Sam wrote:
> > > Looking for someone to confirm if this is expected
> > behavior, or a bug:
> > >
> > > With standard mount points:
> > >
> > > c:\cygwin\bin on /usr/bin type system (binmode)
> > > c:\cygwin\lib on /usr/lib type system (binmode)
> > >
> > > * Calling realpath() to resolve "/bin" results in "/usr/bin".
> > > * Likewise, calling realpath() to resolve "/lib" results
> > in "/usr/lib".
> > >
> > > If anything, I'd expect the opposite behavior - ie,
> > realpath("/usr/bin")
> > > to return "/bin", etc.
> >
> > Wrong mailing list. Try cygwin AT cygwin DOT com.
>
> That said - the question remains: is this a bug, or a valid (but
> unexpected) implementation of realpath?
Thinking a while about that, it's valid. It might be unexpected but
it's ok. /bin translates to C:/cygwin/bin and this in turn translates
to /usr/bin taking the mount points into account.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin AT cygwin DOT com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -