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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Mon, 07 Jan 2008 02:21:37 -0000


raeburn		Sun Jan  6 21:21:37 2008 EDT

  Modified files:              
    /loncom	lond 
  Log:
  Bug 5561. Double linefeed caused request/response process via lonc/lond to get out of sync.
  
  
Index: loncom/lond
diff -u loncom/lond:1.392 loncom/lond:1.393
--- loncom/lond:1.392	Thu Jan  3 15:42:28 2008
+++ loncom/lond	Sun Jan  6 21:21:35 2008
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.392 2008/01/03 20:42:28 raeburn Exp $
+# $Id: lond,v 1.393 2008/01/07 02:21:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.392 $'; #' stupid emacs
+my $VERSION='$Revision: 1.393 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -2141,17 +2141,17 @@
     my ($fname, $session) = split(/:/, $tail);
     
     chomp($session);
-    my $reply="non_auth\n";
+    my $reply="non_auth";
     my $file = $perlvar{'lonIDsDir'}.'/'.$session.'.id';
     if (open(ENVIN,"$file")) {
 	flock(ENVIN,LOCK_SH);
 	tie(my %disk_env,'GDBM_File',"$file",&GDBM_READER(),0640);
 	if (exists($disk_env{"userfile.$fname"})) {
-	    $reply="ok\n";
+	    $reply="ok";
 	} else {
 	    foreach my $envname (keys(%disk_env)) {
 		if ($envname=~ m|^userfile\.\Q$fname\E|) {
-		    $reply="ok\n";
+		    $reply="ok";
 		    last;
 		}
 	    }