mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
0d382f4878
commit
d7abb533e2
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Apr 8 14:57:06 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* win32/win32.c (rb_w32_wreadlink): should treat junctions like as
|
||||||
|
symlinks.
|
||||||
|
|
||||||
Wed Apr 8 14:03:47 2015 Koichi Sasada <ko1@atdot.net>
|
Wed Apr 8 14:03:47 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* test/ruby/test_symbol.rb: fix syntax error.
|
* test/ruby/test_symbol.rb: fix syntax error.
|
||||||
|
|
|
@ -4726,7 +4726,8 @@ rb_w32_wreadlink(const WCHAR *path, WCHAR *buf, size_t bufsize)
|
||||||
&rp, sizeof(rp), &ret, NULL)) {
|
&rp, sizeof(rp), &ret, NULL)) {
|
||||||
e = map_errno(GetLastError());
|
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;
|
e = EINVAL;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue