3 if (! -x ($groups = '/usr/ucb/groups') && ! -x ($groups = '/usr/bin/groups')) {
11 ($pwgnam) = getgrgid($pwgid);
12 @basegroup{$pwgid,$pwgnam} = (1,1);
16 for (split(' ', $()) {
18 ($group) = getgrgid($_);
27 $gr1 = join(' ', sort @gr);
29 $gr2 = join(' ', grep(!$basegroup{$_}++, sort split(' ',`$groups`)));
35 print "#gr1 is <$gr1>\n";
36 print "#gr2 is <$gr2>\n";
40 # multiple 0's indicate GROUPSTYPE is currently long but should be short
42 if ($pwgid == 0 || $seen{0} < 2) {
46 print "not ok 2 (groupstype should be type short, not long)\n";