Issue #7374 has been updated by luislavena (Luis Lavena).

Status changed from Closed to Assigned
% Done changed from 100 to 90

=begin
Sorry for the noise, but seems I've a Webrick failure caused by this that didn't catch when sent r37700 in.

 test_short_filename(WEBrick::TestFileHandler) [C:/Users/Worker/Jenkins/workspace/ruby-trunk-x86-build/test/webrick/test_filehandler.rb:240]:
 webrick log start:
   [2012-11-17 12:49:00] INFO  WEBrick 1.3.1
   [2012-11-17 12:49:00] INFO  ruby 2.0.0 (2012-11-17) [i386-mingw32]
   [2012-11-17 12:49:00] INFO  WEBrick::HTTPServer#start: pid=14444 port=62527
   
   [2012-11-17 12:49:00] WARN  the request refers nondisclosure name `.htaccess'.
   [2012-11-17 12:49:00] ERROR `/.htaccess' not found.
   
   
 webrick log end.
 <"404"> expected but was
 <"200">.

Looking into this right now.
=end

----------------------------------------
Bug #7374: File.expand_path resolving to first file/dir instead of absolute path
https://bugs.ruby-lang.org/issues/7374#change-33024

Author: mdube / arcane-technologies.com (Martin Dubé)
Status: Assigned
Priority: High
Assignee: luislavena (Luis Lavena)
Category: core
Target version: 2.0.0
ruby -v: ruby 1.9.3p327 (2012-11-10) [i386-mingw32]


=begin
(({File.expand_path("./*", "c:)"}))
will give "c:/$recycle.bin" as result instead of "c:/*"

(({File.expand_path("./*", "c:/temp)"}))
will give "c:/temp/." as result instead of "c:/temp/*"

It looks like the first directory entry is returned instead of the absolute path.


=end


-- 
http://bugs.ruby-lang.org/