This seems a more logical place for it, on the assumptions that
a: only 1 of the 4 programs tried will produce results
b: Reading from /etc/passwd is intended as a fallback if none produce results.
# Try NetInfo.
$where //= try_prog('NetInfo passwd', 'passwd .', '/usr/bin/nidump');
+ # Try NIS+.
+ $where //= try_prog('NIS+', 'passwd.org_dir', '/bin/niscat');
+
if (not defined $where && # Try dscl
$Config{useperlio} eq 'define') { # need perlio
}
}
- # Try NIS+.
- $where //= try_prog('NIS+', 'passwd.org_dir', '/bin/niscat');
-
undef $reason if defined $where;
if ($reason) { # Give up.