* file.c (rb_file_s_extname): fix for file name with spaces.

[ruby-talk:307404]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-07-06 16:24:45 +00:00
parent 498af97173
commit 56174539f1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Jul 7 01:24:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_file_s_extname): fix for file name with spaces.
[ruby-talk:307404]
Sun Jul 6 01:44:46 2008 Tanaka Akira <akr@fsij.org>
* Makefile.in (update-rubyspec): create intermediate directories

2
file.c
View file

@ -3044,7 +3044,7 @@ rb_file_s_extname(klass, fname)
p = last;
break;
}
e = dot;
if (*last == '.') e = dot;
continue;
#else
e = p; /* get the last dot of the last component */