ruby-cvs:21392
From: akr ruby-lang.org
Date: Sun, 9 Dec 2007 14:12:32 +0900 (JST)
Subject: [ruby-cvs:21392] Ruby:r14155 (trunk): * include/ruby/ruby.h (FilePathStringValue): defined. similar to
akr 2007-12-09 14:12:31 +0900 (Sun, 09 Dec 2007)
New Revision: 14155
Modified files:
trunk/ChangeLog
trunk/dir.c
trunk/file.c
trunk/include/ruby/ruby.h
trunk/test/pathname/test_pathname.rb
Log:
* include/ruby/ruby.h (FilePathStringValue): defined. similar to
FilePathValue but no taint check.
* file.c (rb_get_path_no_checksafe): implementation of
FilePathStringValue.
(rb_file_s_basename): use FilePathStringValue.
(rb_file_s_dirname): ditto.
(rb_file_s_extname): ditto.
(rb_file_s_split): ditto.
(rb_file_join): ditto.
* dir.c (file_s_fnmatch): ditto.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/ruby.h?r1=14155&r2=14154
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/pathname/test_pathname.rb?r1=14155&r2=14154
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/file.c?r1=14155&r2=14154
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14155&r2=14154
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/dir.c?r1=14155&r2=14154