grpowned?(p1)
public
Returns true if the named file exists and the effective group id of the
calling process is the owner of the file. Returns false on Windows.
Show source
static VALUE
rb_file_grpowned_p(VALUE obj, VALUE fname)
{
struct stat st;
if (rb_stat(fname, &st) < 0) return Qfalse;
if (rb_group_member(st.st_gid)) return Qtrue;
return Qfalse;
}