--- loncom/lonnet/perl/lonnet.pm 2007/06/25 23:08:55 1.895 +++ loncom/lonnet/perl/lonnet.pm 2007/07/19 23:02:37 1.897 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.895 2007/06/25 23:08:55 albertel Exp $ +# $Id: lonnet.pm,v 1.897 2007/07/19 23:02:37 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3807,12 +3807,12 @@ sub customaccess { my ($effect,$realm,$role,$type)=split(/\:/,$right); if ($type eq 'user') { foreach my $scope (split(/\s*\,\s*/,$realm)) { - my ($tdom,$tcrs)=split(/\_/,$scope); + my ($tdom,$tuname)=split(m{/},$scope); if ($tdom) { if ($tdom ne $env{'user.domain'}) { next; } } - if ($tcrs) { - if ($tcrs ne $env{'user.name'}) { next; } + if ($tuname) { + if ($tuname ne $env{'user.name'}) { next; } } $access=($effect eq 'allow'); last; @@ -7098,7 +7098,7 @@ sub getCODE { sub rndseed { my ($symb,$courseid,$domain,$username)=@_; my ($wsymb,$wcourseid,$wdomain,$wusername)=&whichuser(); - if (!$symb) { + if (!defined($symb)) { unless ($symb=$wsymb) { return time; } } if (!$courseid) { $courseid=$wcourseid; } @@ -7884,6 +7884,7 @@ sub get_dns { } sub reset_hosts_info { + &purge_remembered(); &reset_domain_info(); &reset_hosts_ip_info(); undef(%name_to_host);