diff options
Diffstat (limited to 't/op/pwent.t')
-rwxr-xr-x | t/op/pwent.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/op/pwent.t b/t/op/pwent.t index 0f67eb4287..c09d7c2405 100755 --- a/t/op/pwent.t +++ b/t/op/pwent.t @@ -71,7 +71,8 @@ my %seen; setpwent(); while (<PW>) { chomp; - my @s = split /:/; + # LIMIT -1 so that users with empty shells don't fall off + my @s = split /:/, $_, -1; my ($name_s, $passwd_s, $uid_s, $gid_s, $gcos_s, $home_s, $shell_s) = @s; next if /^\+/; # ignore NIS includes if (@s) { |