Issue #3683 has been updated by Yui NARUSE.

Status changed from Feedback to Assigned
Assignee set to Nobuyoshi Nakada
Target version set to 1.9.3


----------------------------------------
Bug #3683: getgrnam on computer with NIS group (+)?
http://redmine.ruby-lang.org/issues/3683

Author: Rocky Bernstein
Status: Assigned
Priority: Normal
Assignee: Nobuyoshi Nakada
Category: 
Target version: 1.9.3
ruby -v: trunk


=begin
 When I ran "make check" on a computer that has NIS groups, I notice that the ruby-test/test/etc/test_etc.rb fails with this:
 
   1) Error:
 test_getgrnam(TestEtc):
 ArgumentError: can't find group for +
     /src/external-vcs/ruby-test/test/etc/test_etc.rb:86:in `getgrnam'
     /src/external-vcs/ruby-test/test/etc/test_etc.rb:86:in `block in test_getgrnam'
     /src/external-vcs/ruby-test/test/etc/test_etc.rb:85:in `each_value'
     /src/external-vcs/ruby-test/test/etc/test_etc.rb:85:in `test_getgrnam'
 
 I guess this is because "+" isn't understood as a NIS group. I'm not sure what you want to do about this, but I thought I'd report it. 
 
 At "remedy" might not test when the group name is "+" at the end of the /etc/group file. Or one might want to change to code to handle this situation.
=end



-- 
http://redmine.ruby-lang.org