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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 04 Apr 2002 20:37:05 -0000


albertel		Thu Apr  4 15:37:05 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - stops giving students the first name of "error: No such file or directory"
    BUG#207
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.206 loncom/lonnet/perl/lonnet.pm:1.207
--- loncom/lonnet/perl/lonnet.pm:1.206	Thu Apr  4 15:06:20 2002
+++ loncom/lonnet/perl/lonnet.pm	Thu Apr  4 15:37:05 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.206 2002/04/04 20:06:20 matthew Exp $
+# $Id: lonnet.pm,v 1.207 2002/04/04 20:37:05 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1925,6 +1925,7 @@
     my %names=&get('environment',
 		   ['firstname','middlename','lastname','generation'],
 		   $udom,$uname);
+    if ($names{'firstname'} =~ m/^error:.*/) { %names=(); }
     if ($first)  { $names{'firstname'}  = $first; }
     if ($middle) { $names{'middlename'} = $middle; }
     if ($last)   { $names{'lastname'}   = $last; }