[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Mon Feb 18 10:19:31 EST 2019


raeburn		Mon Feb 18 15:19:31 2019 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - For 2.11
  - Backport 1.1379 (part) omitted from changes in rev. 1.1172.2.96 
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1172.2.104 loncom/lonnet/perl/lonnet.pm:1.1172.2.105
--- loncom/lonnet/perl/lonnet.pm:1.1172.2.104	Fri Feb 15 21:34:43 2019
+++ loncom/lonnet/perl/lonnet.pm	Mon Feb 18 15:19:30 2019
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1172.2.104 2019/02/15 21:34:43 raeburn Exp $
+# $Id: lonnet.pm,v 1.1172.2.105 2019/02/18 15:19:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -12802,12 +12802,12 @@
 	&$func(\@content,$hashref);
 	return;
     }
-    close($config);
     my $which = (split('/',$url))[3];
     &logthis("unable to contact DNS defaulting to on disk file dns_$which.tab\n");
-    open($config,"<","$perlvar{'lonTabDir'}/dns_$which.tab");
-    my @content = <$config>;
-    &$func(\@content,$hashref);
+    if (open(my $config,"<","$perlvar{'lonTabDir'}/dns_$which.tab")) {
+        my @content = <$config>;
+        &$func(\@content,$hashref);
+    }
     return;
 }
 




More information about the LON-CAPA-cvs mailing list