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

Author: Rocky Bernstein
Status: Open, Priority: Normal
ruby -v: trunk

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.


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