Backport #7381
closed
File.expand_path resolving to first file/dir instead of absolute path
Added by luislavena (Luis Lavena) about 12 years ago.
Updated almost 12 years ago.
Description
Please backport r37692, r37700 and r37706 as they solve Bug #7374 already fixed in trunk.
Find attached a diff containing all the changes including ChangeLog ones.
Thank you.
Files
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r38321.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 37692,37700,37706: [Backport #7381]
* win32/file.c (replace_to_long_name): skip automatic path expansion
when wildcard character is used. [ruby-core:49451] [Bug #7374]
* test/ruby/test_file_exhaustive.rb: add a test for above.
* win32/file.c (replace_to_long_name): skip expansion for all wildcard
characters.
[ruby-core:49451] [Bug #7374]
* test/ruby/test_file_exhaustive.rb: add more assertions to test.
* win32/file.c (replace_to_long_name): correct logic around wildcard
characters detection and ensure wide-chars are used as pattern.
[ruby-core:49451] [Bug #7374]
Also available in: Atom
PDF
Like0
Like0