[前][次][番号順一覧][スレッド一覧]

ruby-changes:38103

From: usa <ko1@a...>
Date: Wed, 8 Apr 2015 14:58:53 +0900 (JST)
Subject: [ruby-changes:38103] usa:r50184 (trunk): * win32/win32.c (rb_w32_wreadlink): should treat junctions like as

usa	2015-04-08 14:58:34 +0900 (Wed, 08 Apr 2015)

  New Revision: 50184

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50184

  Log:
    * win32/win32.c (rb_w32_wreadlink): should treat junctions like as
      symlinks.

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50183)
+++ ChangeLog	(revision 50184)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Apr  8 14:57:06 2015  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (rb_w32_wreadlink): should treat junctions like as
+	  symlinks.
+
 Wed Apr  8 14:03:47 2015  Koichi Sasada  <ko1@a...>
 
 	* test/ruby/test_symbol.rb: fix syntax error.
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 50183)
+++ win32/win32.c	(revision 50184)
@@ -4726,7 +4726,8 @@ rb_w32_wreadlink(const WCHAR *path, WCHA https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L4726
 			 &rp, sizeof(rp), &ret, NULL)) {
 	e = map_errno(GetLastError());
     }
-    else if (rp.ReparseTag != IO_REPARSE_TAG_SYMLINK){
+    else if (rp.ReparseTag != IO_REPARSE_TAG_SYMLINK &&
+	     rp.ReparseTag != IO_REPARSE_TAG_MOUNT_POINT){
 	e = EINVAL;
     }
     else {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]