1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
kosaki 2011-02-08 07:01:23 +00:00
parent a9c7af3b6e
commit 411e4a6cf2
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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);