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

raeburn raeburn at source.lon-capa.org
Wed Sep 21 00:57:52 EDT 2016


raeburn		Wed Sep 21 04:57:52 2016 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - If information about the distro is unavailable, assume it's one that will 
    segfault unless lond is used.   
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1322 loncom/lonnet/perl/lonnet.pm:1.1323
--- loncom/lonnet/perl/lonnet.pm:1.1322	Wed Sep 21 04:47:57 2016
+++ loncom/lonnet/perl/lonnet.pm	Wed Sep 21 04:57:52 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1322 2016/09/21 04:47:57 raeburn Exp $
+# $Id: lonnet.pm,v 1.1323 2016/09/21 04:57:52 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -237,7 +237,9 @@
     }
     if (($context ne 'cgi') && ($uselocal)) {
         my $distro = (split(/\:/,&get_server_distarch($lonhost)))[0];
-        if ($distro =~ /^(?:centos|redhat|scientific)(\d+)$/) {
+        if ($distro eq '') {
+            $uselocal = 0;
+        } elsif ($distro =~ /^(?:centos|redhat|scientific)(\d+)$/) {
             if ($1 < 6) {
                 $uselocal = 0;
             }




More information about the LON-CAPA-cvs mailing list