Project

General

Profile

Actions

Bug #3683

closed

getgrnam on computer with NIS group (+)?

Added by rocky (Rocky Bernstein) over 14 years ago. Updated over 13 years ago.

Status:
Closed
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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0