diff options
Diffstat (limited to 't/op/pwent.t')
-rwxr-xr-x | t/op/pwent.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/pwent.t b/t/op/pwent.t index 788d2f2701..ca14a99eec 100755 --- a/t/op/pwent.t +++ b/t/op/pwent.t @@ -79,7 +79,11 @@ while (<PW>) { warn "# Your $where line $. is empty.\n"; next; } - last if $n == $max; + if ($n == $max) { + local $/; + my $junk = <PW>; + last; + } # In principle we could whine if @s != 7 but do we know enough # of passwd file formats everywhere? if (@s == 7) { |