[LON-CAPA-cvs] cvs: loncom / lond

foxr foxr@source.lon-capa.org
Tue, 10 Feb 2009 11:31:27 -0000


foxr		Tue Feb 10 11:31:27 2009 EDT

  Modified files:              
    /loncom	lond 
  Log:
  Support updating pretty much any table file from a remote manager (in
  a compatible way with prior management requests).
  
  
Index: loncom/lond
diff -u loncom/lond:1.410 loncom/lond:1.411
--- loncom/lond:1.410	Fri Jan  2 23:07:45 2009
+++ loncom/lond	Tue Feb 10 11:31:26 2009
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.410 2009/01/02 23:07:45 raeburn Exp $
+# $Id: lond,v 1.411 2009/02/10 11:31:26 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.410 $'; #' stupid emacs
+my $VERSION='$Revision: 1.411 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -562,8 +562,13 @@
 
 #
 #   ConfigFileFromSelector: converts a configuration file selector
-#                 (one of host or domain at this point) into a 
-#                 configuration file pathname.
+#                 into a configuration file pathname.
+#                 It's probably no longer necessary to preserve
+#                 special handling of hosts or domain as those
+#                 files have been superceded by dns_hosts, dns_domain.
+#                 The default action is just to prepend the directory
+#                 and append .tab
+#
 #
 #  Parameters:
 #      selector  - Configuration file selector.
@@ -580,7 +585,7 @@
     } elsif ($selector eq "domain") {
 	$tablefile = $tabledir."domain.tab";
     } else {
-	return undef;
+	$tablefile =  $tabledir.$selector.'.tab';
     }
     return $tablefile;