Project

General

Profile

Actions

Backport #7381

closed

File.expand_path resolving to first file/dir instead of absolute path

Added by luislavena (Luis Lavena) over 11 years ago. Updated over 11 years ago.

Status:
Closed
[ruby-core:49495]

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


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #7374: File.expand_path resolving to first file/dir instead of absolute pathClosedluislavena (Luis Lavena)11/17/2012Actions
Actions #1

Updated by usa (Usaku NAKAMURA) over 11 years ago

  • 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]
Actions

Also available in: Atom PDF

Like0
Like0