summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-08 05:58:34 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-08 05:58:34 (GMT)
commitd7abb533e23239b78bca6d18e9321632a66cf0bf (patch)
treed0a369e6515a7a15bb2e0ed9d29f27e44705eeb9 /win32
parent0d382f4878e176a286344fd6c8da27d0a6f91175 (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index d038464..20b7dc5 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 {