diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-12 11:47:03 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-12 11:47:03 +0000 |
commit | d60d63ef804cad17387f8726fa6bdfec288300ce (patch) | |
tree | e224e0f6917e83b835e9bdc332e4158a1b0c9025 /file.c | |
parent | 3b42acc8c10d95f09792e8b1ab3d237a827e98fa (diff) |
* file.c (realpath_internal): call rb_secure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3173,6 +3173,9 @@ realpath_internal(VALUE path, int strict) volatile VALUE unresolved_path; char *unresolved_names; VALUE loopcheck; + + rb_secure(2); + FilePathValue(path); unresolved_path = rb_str_dup_frozen(path); unresolved_names = skiproot(RSTRING_PTR(unresolved_path)); |