delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/06/03/04:00:48

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Path converting fix.
3 Jun 1998 04:00:48 -0700 :
Message-ID: <01BD8EFE.D38FDCA0.cygnus.cygwin32.developers@sos>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>,
"'Geoffrey Noer'" <noer AT cygnus DOT com>

Geoffrey Noer wrote:
> > path.cc	(conv_to_win32_path, conv_to_full_win32_path): resolve
> > symlinks before converting.
>
> I don't understand why it needs to be done at this point.  Say we have
> /foo/symbar that points to /foo/bar.  If we convert /foo/symbar to
> Win32, shouldn't we have C:/foo/symbar after the conversion?

No! This calls are provided by cygwin.dll to convert unix-like pathnames to 
a pathnames suitable to pass to win32 calls. If the path is a symlink, the 
real filename (the symlink points to) should be returned.

> As long as the path is handed back to a Cygwin32 function, the symlink
> would get discovered eventually, right?

The return value of this calls is not supposed to be used in a cygwin 
calls!

> What's the correct solution?
>

To apply my patch :-)

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019