]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler.cc (fhandler_disk_file::open): Use `inner_suffixes' when
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 22 Feb 2001 11:06:25 +0000 (11:06 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 22 Feb 2001 11:06:25 +0000 (11:06 +0000)
        resolving real_path.
        * path.cc (symlink): Ditto for win32_topath.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc
winsup/cygwin/path.cc

index 13a5cf15fa35346dbd342c46e04d704564471b6a..c1521a55f11a56a74414f20008d1a5075486050b 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb 22 12:04:00 2001  Corinna Vinschen <corinna@vinschen.de>
+
+       * fhandler.cc (fhandler_disk_file::open): Use `inner_suffixes' when
+       resolving real_path.
+       * path.cc (symlink): Ditto for win32_topath.
+
 Wed Feb 21 22:41:00 2001  Corinna Vinschen <corinna@vinschen.de>
 
        * Makefile.in: Add `-lshell32 -luuid' to link pass for new-cygwin1.dll.
index 40aa508494c1a42eec1a40c8d5a6310f3a6b0f30..b7ec79b34540037917aa4f85d939b2ca75ab04b3 100644 (file)
@@ -1199,11 +1199,13 @@ fhandler_disk_file::fhandler_disk_file (const char *name) :
 int
 fhandler_disk_file::open (const char *path, int flags, mode_t mode)
 {
+  extern suffix_info inner_suffixes[];
+
   syscall_printf ("(%s, %p)", path, flags);
 
   /* O_NOSYMLINK is an internal flag for implementing lstat, nothing more. */
   path_conv real_path (path, (flags & O_NOSYMLINK) ?
-                            PC_SYM_NOFOLLOW : PC_SYM_FOLLOW);
+                            PC_SYM_NOFOLLOW : PC_SYM_FOLLOW, inner_suffixes);
 
   if (real_path.error &&
       (flags & O_NOSYMLINK || real_path.error != ENOENT || !(flags & O_CREAT)))
index 3b2e8ad27f40f60e0eab03d35f83b472fdebef29..9183762cc11ec5ab9d10778fbaeecf9e88eb0cfa 100644 (file)
@@ -2297,7 +2297,7 @@ symlink (const char *topath, const char *frompath)
        }
 #else
       create_shortcut_header ();
-      path_conv win32_topath (topath, PC_SYM_NOFOLLOW);
+      path_conv win32_topath (topath, PC_SYM_NOFOLLOW, inner_suffixes);
       len = strlen (topath);
       unsigned short win_len = strlen (win32_topath.get_win32 ());
       if (WriteFile (h, shortcut_header, SHORTCUT_HDR_SIZE, &written, NULL)
This page took 0.032874 seconds and 5 git commands to generate.