1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

commit miss

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-12-15 04:11:34 +00:00
parent 12b5b81a97
commit 52f81e0ce7
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
Mon Dec 15 13:06:58 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
Mon Dec 15 13:11:32 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (check_dirname): check string safety and remove extraneous
trailing directory separators. [ruby-dev:22279]

2
dir.c
View file

@ -508,7 +508,7 @@ check_dirname(dir)
SafeStringValue(*dir);
rb_secure(2);
path = RSTRING(*dir)->ptr;
if (*(path && pend = rb_path_end(rb_path_skip_prefix(path)))) {
if (path && *(pend = rb_path_end(rb_path_skip_prefix(path)))) {
*dir = rb_str_new(path, pend - path);
}
}