delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/06/03/01:30:41

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: Path converting fix.
3 Jun 1998 01:30:41 -0700 :
Message-ID: <01BD8EE9.AA0DFED0.cygnus.cygwin32.developers@sos>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Hi!

Try to view source file in gdbtk window if the file is a symlink :-)


path.cc	(conv_to_win32_path, conv_to_full_win32_path): resolve symlinks before
		converting.

Index: path.cc
===================================================================
RCS file: /usr/cvsroot/cdk/winsup/path.cc,v
retrieving revision 1.11
diff -u -p -r1.11 path.cc
--- path.cc     1998/05/02 09:22:21     1.11
+++ path.cc     1998/06/03 08:01:12
@@ -1562,13 +1564,15 @@ endmntent (FILE *)
 extern "C" void
 conv_to_win32_path (const char *path, char *win32_path)
 {
-  cygwin_shared->mount.conv_to_win32_path (path, win32_path, NULL);
+  cygwin_shared->mount.conv_to_win32_path (path_conv (path).get_win32 (),
+        win32_path, NULL);
 }

 extern "C" void
 conv_to_full_win32_path (const char *path, char *win32_path)
 {
-  cygwin_shared->mount.conv_to_win32_path (path, NULL, win32_path);
+  cygwin_shared->mount.conv_to_win32_path (path_conv (path).get_win32 (),
+        NULL, win32_path);
 }

 /* This is exported to the world as cygwin32_foo by cygwin.din.  */

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


- Raw text -


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