[ID 20000802.004] Tests op/grent.t and op/pwent.t fail unnecessarily
[p5sagit/p5-mst-13.2.git] / t / op / grent.t
index d4b0e87..f2b5b9c 100755 (executable)
@@ -70,7 +70,8 @@ my %seen;
 setgrent();
 while (<GR>) {
     chomp;
-    my @s = split /:/;
+    # LIMIT -1 so that groups with no users don't fall off
+    my @s = split /:/, $_, -1;
     my ($name_s,$passwd_s,$gid_s,$members_s) = @s;
     if (@s) {
        push @{ $seen{$name_s} }, $.;