[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 14 May 2007 09:39:00 -0000
albertel Mon May 14 05:39:00 2007 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- can get back a blank response from getdom from old buggy londs treat them as error 2
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.874 loncom/lonnet/perl/lonnet.pm:1.875
--- loncom/lonnet/perl/lonnet.pm:1.874 Mon May 14 04:47:54 2007
+++ loncom/lonnet/perl/lonnet.pm Mon May 14 05:38:59 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.874 2007/05/14 08:47:54 albertel Exp $
+# $Id: lonnet.pm,v 1.875 2007/05/14 09:38:59 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -756,7 +756,7 @@
if ($udom && $uhome && ($uhome ne 'no_host')) {
my $rep=&reply("getdom:$udom:$namespace:$items",$uhome);
my %returnhash;
- if ($rep =~ /^error: 2 /) {
+ if ($rep eq '' || $rep =~ /^error: 2 /) {
return %returnhash;
}
my @pairs=split(/\&/,$rep);