summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-01 06:47:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-01 06:47:32 +0000
commita7cf78ec312b0f5a2030e2be1fcb1391a7b70f56 (patch)
tree9189cade96efd9e1796dcb21b5b65983e1fe4233 /file.c
parentecb9618b8cb767328444d903521cc3fff683cc16 (diff)
downloadruby-a7cf78ec312b0f5a2030e2be1fcb1391a7b70f56.tar.gz
ruby-a7cf78ec312b0f5a2030e2be1fcb1391a7b70f56.tar.xz
ruby-a7cf78ec312b0f5a2030e2be1fcb1391a7b70f56.zip
* parse.y (yylex): fixed 'print CGI::bar() {}, "\n"' syntax
breakage, adding new lex_state status. sigh. [new] * file.c (rb_file_s_unlink): should not allow if $SAFE >= 2. * range.c (Init_Range): define "to_ary". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 14c6d9271..1cff4778c 100644
--- a/file.c
+++ b/file.c
@@ -1246,6 +1246,7 @@ rb_file_s_unlink(klass, args)
{
int n;
+ rb_secure(2);
n = apply2files(unlink_internal, args, 0);
return INT2FIX(n);
}