Mail Archives: cygwin-developers/1998/06/03/04:00:48
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 -