From 3a9bf2f1243eb0408963efbcd4df75a411eb6b4e Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 14 Feb 2008 07:02:54 +0000 Subject: * file.c (rb_file_s_utime): inhibits with secure level 2 or higher. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'file.c') diff --git a/file.c b/file.c index 12dc3ebba8..efa9cf9dbe 100644 --- a/file.c +++ b/file.c @@ -2133,6 +2133,7 @@ rb_file_s_utime(int argc, VALUE *argv) struct timespec tss[2], *tsp = NULL; long n; + rb_secure(2); rb_scan_args(argc, argv, "2*", &atime, &mtime, &rest); if (!NIL_P(atime) || !NIL_P(mtime)) { -- cgit v1.2.3