RE: realpath behavior

2003-02-11 Thread Robb, Sam
 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 [EMAIL PROTECTED]

My apologies.  It was related to a porting issue, so I defaulted
to cygwin-apps.

That said - the question remains: is this a bug, or a valid (but
unexpected) implementation of realpath?

-Samrobb

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




Re: realpath behavior

2003-02-11 Thread Corinna Vinschen
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 [EMAIL PROTECTED]
 
 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 Developermailto:[EMAIL PROTECTED]
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/