summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-26 12:20:27 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-26 12:20:27 +0000
commit7a5eaffefdfed01b061460a3a7f8d8d55dcb761a (patch)
tree722838a915a7d2457dd381e8aa712a3cb6ba0231 /file.c
parent0175825cfca3866a7a729a88f90bdf37e4fee54f (diff)
merge revision(s) 22392:22394:
* file.c (rb_file_s_extname): fix for spaces before extention. [ruby-dev:38044] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@23585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 3e4db29876..50d2d3f99f 100644
--- a/file.c
+++ b/file.c
@@ -3035,7 +3035,7 @@ rb_file_s_extname(klass, fname)
p = last;
break;
}
- if (*last == '.') e = dot;
+ if (*last == '.' || dot > last) e = dot;
continue;
#else
e = p; /* get the last dot of the last component */