mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
23db145b07
commit
3a9bf2f124
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Feb 14 16:02:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rb_file_s_utime): inhibits with secure level 2 or higher.
|
||||
|
||||
Thu Feb 14 12:30:02 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* re.c (rb_reg_preprocess_dregexp): use non-preprocessed regexp source
|
||||
|
|
1
file.c
1
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)) {
|
||||
|
|
Loading…
Reference in a new issue