From 373a59b95b71b54b99a0ba229cd5860fac308115 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 10 Jun 2003 05:22:17 +0000 Subject: * lib/irb.rb (IRB::Irb::eval_input): warn and exit if $SAFE >=3 after input evaluation. * lib/irb.rb (IRB::Irb::eval_input): untaint input string. now irb works for levels 1 and 2. * ext/syck/rubyext.c (syck_loader_transfer): should not use rb_cProc directly, since type_proc may be Proc, Block, or Method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'process.c') diff --git a/process.c b/process.c index 972c9e8eed..6c06c2b6bb 100644 --- a/process.c +++ b/process.c @@ -1283,6 +1283,9 @@ proc_setgroups(VALUE obj, VALUE ary) } else { gr = getgrnam(RSTRING(g)->ptr); + if (gr == NULL) + rb_raise(rb_eArgError, "can't find group for %s", RSTRING(g)->ptr); + groups[i] = gr->gr_gid; } } } -- cgit v1.2.3