зеркало из https://github.com/github/ruby.git
* process.c (rb_run_exec_options_err): use MODET2NUM() instead LONG2NUM().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a9c7af3b6e
Коммит
411e4a6cf2
|
@ -1,3 +1,7 @@
|
|||
Tue Feb 8 15:59:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* process.c (rb_run_exec_options_err): use MODET2NUM() instead LONG2NUM().
|
||||
|
||||
Tue Feb 8 13:59:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* configure.in: revert r30725. Now we have proper runtime fallback.
|
||||
|
|
|
@ -2338,7 +2338,7 @@ rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char
|
|||
mode_t mask = NUM2MODET(obj);
|
||||
mode_t oldmask = umask(mask); /* never fail */
|
||||
if (!NIL_P(soptions))
|
||||
rb_ary_store(soptions, EXEC_OPTION_UMASK, LONG2NUM(oldmask));
|
||||
rb_ary_store(soptions, EXEC_OPTION_UMASK, MODET2NUM(oldmask));
|
||||
}
|
||||
|
||||
obj = rb_ary_entry(options, EXEC_OPTION_DUP2);
|
||||
|
|
Загрузка…
Ссылка в новой задаче