From d7abb533e23239b78bca6d18e9321632a66cf0bf Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 8 Apr 2015 05:58:34 +0000 Subject: [PATCH] * win32/win32.c (rb_w32_wreadlink): should treat junctions like as symlinks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ win32/win32.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 037ac6e48c..9edbbe8b26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 8 14:57:06 2015 NAKAMURA Usaku + + * win32/win32.c (rb_w32_wreadlink): should treat junctions like as + symlinks. + Wed Apr 8 14:03:47 2015 Koichi Sasada * test/ruby/test_symbol.rb: fix syntax error. diff --git a/win32/win32.c b/win32/win32.c index d038464416..20b7dc5b2b 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4726,7 +4726,8 @@ rb_w32_wreadlink(const WCHAR *path, WCHAR *buf, size_t bufsize) &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 {