[前][次][番号順一覧][スレッド一覧]

ruby-changes:24097

From: nobu <ko1@a...>
Date: Wed, 20 Jun 2012 11:33:19 +0900 (JST)
Subject: [ruby-changes:24097] nobu:r36148 (trunk): process.c: fixnum umask

nobu	2012-06-20 11:33:06 +0900 (Wed, 20 Jun 2012)

  New Revision: 36148

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36148

  Log:
    process.c: fixnum umask
    
    * process.c (rb_execarg_addopt): always make Fixnum, and ignore higher
      bits in too large umask value.

  Modified files:
    trunk/ChangeLog
    trunk/process.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36147)
+++ ChangeLog	(revision 36148)
@@ -1,3 +1,8 @@
+Wed Jun 20 11:33:04 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* process.c (rb_execarg_addopt): always make Fixnum, and ignore higher
+	  bits in too large umask value.
+
 Wed Jun 20 11:24:35 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): deal with
Index: process.c
===================================================================
--- process.c	(revision 36147)
+++ process.c	(revision 36148)
@@ -1602,7 +1602,7 @@
             if (!NIL_P(rb_ary_entry(options, EXEC_OPTION_UMASK))) {
                 rb_raise(rb_eArgError, "umask option specified twice");
             }
-            rb_ary_store(options, EXEC_OPTION_UMASK, LONG2NUM(cmask));
+            rb_ary_store(options, EXEC_OPTION_UMASK, LONG2FIX(cmask));
         }
         else if (id == rb_intern("close_others")) {
             if (!NIL_P(rb_ary_entry(options, EXEC_OPTION_CLOSE_OTHERS))) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]