End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Etc.setgrent
setgrent
ext/etc/etc.c
View on GitHub ↗
static VALUE
etc_setgrent(VALUE obj)
{
#ifdef HAVE_GETGRENT
setgrent();
#endif
return Qnil;
}
Resets the process of reading the /etc/group file, so that the next call to ::getgrent will return the first entry again.