mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* io.c (rb_io_s_sysopen): use NUM2MODET() instead NUM2UINT().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									411e4a6cf2
								
							
						
					
					
						commit
						0559227e87
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Tue Feb  8 16:04:03 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* io.c (rb_io_s_sysopen): use NUM2MODET() instead NUM2UINT().
 | 
			
		||||
 | 
			
		||||
Tue Feb  8 15:59:23 2011  KOSAKI Motohiro  <kosaki.motohiro@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* process.c (rb_run_exec_options_err): use MODET2NUM() instead LONG2NUM().
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								io.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								io.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -5521,7 +5521,7 @@ rb_io_s_sysopen(int argc, VALUE *argv)
 | 
			
		|||
	oflags = rb_io_modestr_oflags(StringValueCStr(vmode));
 | 
			
		||||
    }
 | 
			
		||||
    if (NIL_P(vperm)) perm = 0666;
 | 
			
		||||
    else              perm = NUM2UINT(vperm);
 | 
			
		||||
    else              perm = NUM2MODET(vperm);
 | 
			
		||||
 | 
			
		||||
    RB_GC_GUARD(fname) = rb_str_new4(fname);
 | 
			
		||||
    fd = rb_sysopen(fname, oflags, perm);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue