diff options
Diffstat (limited to 't/op/pwent.t')
-rwxr-xr-x | t/op/pwent.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/op/pwent.t b/t/op/pwent.t index fc71f574ad..4d9de4490f 100755 --- a/t/op/pwent.t +++ b/t/op/pwent.t @@ -49,6 +49,18 @@ BEGIN { } } + if (not defined $where) { # Try NIS+ + foreach my $niscat (qw(/bin/niscat)) { + if (-x $niscat && + open(PW, "$niscat passwd.org_dir 2>/dev/null |") && + defined(<PW>)) { + $where = "NIS+ $niscat passwd.org_dir"; + undef $reason; + last; + } + } + } + if ($reason) { # Give up. print "1..0 # Skip: $reason\n"; exit 0; |