Project

General

Profile

Bug #3683

getgrnam on computer with NIS group (+)?

Added by rocky (Rocky Bernstein) about 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
trunk
Backport:
[ruby-core:31681]

Description

=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

Also available in: Atom PDF