I face problem with perl function Net::NIS::yp_all(), which is unable to get any NIS map, althouth I type "ypcat" in command line shows that the NIS map exists.
I have written a sample program to test it, and I find that EM64T, Fedora 3 update 3, perl 5.8.5 has the problem IA64, Fedora 3 update 3, perl 5.8.5 has NO problem EM64T, RHWS3, perl 5.8.0 has NO problem C version of yp_all() has NO problem.
Here is the test script for Perl yp_all(): =================================== #!/usr/bin/perl
use Net::NIS; # get our default NIS domain name $domain = Net::NIS::yp_get_default_domain( ); # grab the map ($status, $info) = Net::NIS::yp_all($domain,"netgroup.byhost"); foreach my $name (sort keys %{$info}){ print "$name => $info->{$name}\n"; } print "The end\n"; ===================================
Clotho Tsang wrote:
I face problem with perl function Net::NIS::yp_all(), which is unable to get any NIS map, althouth I type "ypcat" in command line shows that the NIS map exists.
There is no obvious bug, so you'll have to investigate it yourself. Run perl with ltrace and strace, and compare the output with that you get when doing the same on a machine which works.
-- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖