зеркало из https://github.com/github/ruby.git
* 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:
Родитель
23db145b07
Коммит
3a9bf2f124
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче