summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-14 07:02:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-14 07:02:54 +0000
commit7864d891e271254008b0ad158cc39112f2972a0e (patch)
tree8a7e1def98d348a9c981f05083dadd5bc825b3e1 /file.c
parent133a98c63d7c6ddd21361eda60b0fcb52799ca87 (diff)
* file.c (rb_file_s_utime): inhibits with secure level 2 or higher.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15468 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 52fe96c..2e79bed 100644
--- a/file.c
+++ b/file.c
@@ -2013,6 +2013,7 @@ rb_file_s_utime(argc, argv)
struct timeval tvs[2], *tvp = NULL;
long n;
+ rb_secure(2);
rb_scan_args(argc, argv, "2*", &atime, &mtime, &rest);
if (!NIL_P(atime) || !NIL_P(mtime)) {