Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 11 Feb 2003 19:48:14 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: "realpath" behavior Message-ID: <20030211184814.GK28314@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3D848382FB72E249812901444C6BDB1DE4DD17 AT exchange DOT timesys DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D848382FB72E249812901444C6BDB1DE4DD17@exchange.timesys.com> User-Agent: Mutt/1.4i 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/